Sunday, October 6, 2013

VirtualBox Bridged Networking and MTU Problem in a Windows Guest


Busting my head (and other valuable parts of my body) getting Bridged networking in virtual WindowsXP (Windows 7 doesn't have this issue) with Linux host because I needed it to have DHCP IP and make it available to my home network, basic websites would load and others would time out. Also accesing the machine via SAMBA would cause errors once in a while. Using standard NAT would work and resolve websites immediately, but the machine would get IP assigned by host machine and would not be seen to the rest of the home network and completely invisible in router.



Turned out that MTU (I believe 1500 default) is too high in WindowsXP, in my Debian Linux host I have MTU set to standard 1492, so I lowered the MTU in virtual winxp to 1469, and now everything is better, pages resolve immediately, pings don't time out and some websites (mostly running in ssl mode) are no longer causing trouble.

If you really need the virtual windows guest to have IP assigned (probably even static) by the main network because you can only do it with bridged networking mode, and are having this type of issues that I had then you can change the MTU in winxp through the registry.

So to do it just run regedit and do the following steps:

Once in regedit go to this key

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\[Adapter ID]]

NOTE: [Adapter ID] is going to be a unique alphanumeric sequence, you may have several, you need to find the correct one, usually the correct key will have more entries within it, you can add the mtu entry to all of them, it wont hurt if you do.

Once in the registry key for that interface, create a new DWORD value and call it MTU

Edit the MTU dword value, change the value to 1469 and make sure it is a decimal value, not hexadecimal.

Once you make that change you have to reboot.

And hopefully your bridged networking will be working as it should...

12 comments:

  1. Thanks for that. It is a complete mystery to me as to why the MTU has to come down to 1469 but it did do the trick for me.
    Windows.........

    ReplyDelete
  2. Try VM Ware player, worked fine for me in Solaris and Ubuntu.

    ReplyDelete
  3. thanks for the good informative blog to provide me,thanks for sharing.

    Silver Jackpot Calls

    ReplyDelete
  4. Thanks for writing such a good article, I stumbled onto your blog and read a few post. I like your style of writing...
    mason soiza

    ReplyDelete
  5. How to Lose Weight Fast: 6 Tips For Weight Loss Quickly!

    How to weight loss fast? All overweight people want to know. Guys we all know the common “look at your diet & exercise regularly” habit. But if this is as so simple as that, after that there would not be so lots of fat man and women in this world! Amidst every the lies & hype into the weight loss industry, friends it may be hard to divide the lies & hype from the truth. That is why in today I am going to discuss with you 6 effective tips you can do for weight loss fast. By follow this 6 things will assist you safely to lose weight & stay lean every year-round.

    The 3 Week Diet Review – The Ultimate Solution For Quick Weight Loss

    The 3 week diet plan is a science-based loss weight program (without weight loss pills) which guarantees a user to lose weight 12-23 lbs. of body weight in just 21 days. The primary inventor of this exclusive weight-reduction plan is Brian Flatt who is a head coach, sports nutritionist, & personal trainer & has worked for lots of years in his specialised area.He has trained several of his circle to effectively lose stubborn fat & also build powerful strength. The 3 Week Diet is a unique online 95-page ebook separated into many segments such as work out, motivation, diet, mind-set & will power. Go here for more information about Product Review.

    ReplyDelete
  6. Chicken Tikka Masala recipe | healthtipsschool.com

    Chicken Tikka is a conventional and very fashionable Indian Chicken recipes which is satisfied full of flavor & color.The word ‘Tikka” means pieces, bits or chunks.

    Quick Easy Onion Bhaji Recipe & Cooking Guide Indian Restaurant

    Homemade Onion Bhaji are well value the attempt, they are great as a starter for an Indian feast.Onion Bhaji is also identified as Vengaya Baji and also is a type of fritter completed with vegetables, deep fried with experienced batter.

    Indian Inspired Lamb Samosa Recipe | healthtipsschool.com

    Famous Indian patties through the filling of lamb, vegetables and flavors. A lamb samosa is a fried pastry with a savory filling, such like spiced potatoes, peas, onions,lentils, ground beef ground lamb or ground chicken.Samosas are the triangular doubled and sealed crepe akin to food with filling inside that are deep fried.

    King Prawn Butterfly – Indian Restaurant Cooking- IndianFood Made Easy

    Peel and take away the veins from the King Prawn Butterfly recipe, create a deep cut along the tummy of the king prawns, open it out and push it down so it becomes level.

    How To Make Prawn Puree / Indian Food Cooking | healthtipsschool.com

    Prawn puree recipes is most normally served at breakfast otherwise as a snack or light feast. It is habitually served with a curry or bhaji, like in Puree bhaji.

    SIMPLE CHICKEN CURRY RECIPE | QUICK & EASY CHICKEN CURRY RECIPE | CHICKEN CURRY FOR BEGINNERS

    simple chicken curry recipe is a general delicacy in Southeast Asia, South Asia, as well as in the Caribbean. A distinctive Asian curry consists of chicken stewed in a tomato and onion-based sauce, flavoured with garlic, ginger, chillies and a mixture of spices, often counting cumin, coriander, turmeric, cinnamon, cardamom and so on.

    Chicken Bhuna Masala – how to make chicken bhuna masala recipe – tasty Indian recipes

    Cheaper than a carry away this delicious chicken bhuna is simple to make which means it is great for a weekend dinner. The solid, medium-hot, sauce prepared from a tasty mix of flavourings and vegetables absolutely coats and greetings the rich meat of chicken thighs. Go here For More how to make chicken bhuna masala recipe.

    How to make mutton seekh kabab masala recipe | healthtipsschool.com

    A dish consisting of tiny pieces of meat, onions, tomatoes, etc, threaded onto skewers with grilled, usually over charcoal, also called: seekh kabab recipe. These make delicious starters or are superior for a party.

    How to make Tandoori Chicken – Tandoori Chicken Restaurant style without oven

    Tandoori chicken is a fashionable Indian dish consisting of roasted chicken organized with yogurt and spices. The name comes beginning the type of cylindrical clay oven, a tandoor, in which the dish is habitually arranged. This is an actual way for Tandoori chicken.


    ReplyDelete