VirtualBox

This is just a page for documenting some tricks I discovered while playing with VirtualBox.

Installing

Just download it from their site www.virtualbox.org and install it like this

dpkg -i name_of_the_downloaded_file.deb

Then start VirtualBox and install the guests. Instead of using a CDROM for installing guests, you can also use an ISO file as CDROM. This is faster.

VirtualBox comes with some kernel modules which need to be recompiled each time the kernel is upgraded. So if you upgrade the kernel, use this command to recompile the VirtualBox modules:

/etc/init.d/vboxdrv setup

VirtualBox works best with the "guest additions" installed. After installing the guest, start it up and use the option in the menu bar to install the guest additions.

Screen size

The graphics drivers of VirtualBox allow you to adjust the guest's screen size to the window size automatically. In KDE and Windows you can also set the screen size the same way you normally do. However in KDE I could not set the screen size to 1280x1024. If you would like to get certain fixed screen resolutions in a Ubuntu guest, add the following to the screen section of your /etc/X11/xorg.conf:

SubSection "Display"
Modes "1280x1024" "1152x864" "1024x768" "800x600"
EndSubSection

Cloning

You can copy a hard disk image of a virtual machine, by using this command to copy it:

VBoxManage clonevdi `pwd`/source.vdi `pwd`/dest.vdi

Note that absolute paths are required, hence the pwd commands.

The new vdi gets a unique (different) UUID. You can add the new image in the "virtual media manager", and create a new virtual machine which uses it.

When you cloned an Ubuntu guest, you may want to remove a file called /etc/udev/rules.d/70-persistent-net.rules in order to clear data about the old MAC address. Otherwise your new network card appears as eth1 instead of eth0.

Networking

By default Virtualbox uses a kind of NAT with a built-in DHCP server for the guests. I used "a kind of", because all guests actually use the same IP address. They cannot see each other and it is impossible to setup an incoming connection. You can access the host using 10.0.2.2. Instead of NAT you can also use "internal network". Now the guests can see each other, but they cannot access the outside world. Then there is "bridged networking" in which you can share the host interface. Disadvantage of that is the fact that the guest's IP-addresses are visible for the outside world. If you want NAT while keeping the ability to route incoming connections and the ability to communicate between guests, then use the following approach.

First install the software needed to create and setup tap interfaces:

aptitude install uml-utilities

Then create a script called tap to setup a tap interface:

#!/bin/sh

sysctl -w net.ipv4.conf.eth0.arp_ignore=1
sysctl -w net.ipv4.ip_forward=1
tunctl -t tap0 -u your_username
ifconfig tap0 192.168.1.1 netmask 255.255.255.0 up

exit 0

The first line prevents the host from responding to ARP requests which query IP addresses that happen to be used for internal networking. The second line enables routing. You can also put the sysctl settings in a file called /etc/sysctl.conf. The third line creates the tap interface. Replace your_username by your username. The fourth line sets up the tap interface.

Now we can setup NAT, using another script, called nat:

#!/bin/sh

iptables -P INPUT ACCEPT
iptables -F INPUT
iptables -P OUTPUT ACCEPT
iptables -F OUTPUT
iptables -P FORWARD DROP
iptables -F FORWARD
iptables -t nat -F

iptables -A FORWARD -i eth0 -o tap0 -m state --state ESTABLISHED,RELATED  -j ACCEPT
iptables -A FORWARD -i tap0 -o eth0 -j ACCEPT
iptables -A FORWARD -j LOG
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -t nat -A PREROUTING -p tcp --dport 53 -i tap0 -j DNAT --to your_dns_server:53
iptables -t nat -A PREROUTING -p udp --dport 53 -i tap0 -j DNAT --to your_dns_server:53

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 5800 -j DNAT \
   --to 192.168.1.100:5800
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 5900 -j DNAT \
   --to 192.168.1.100:5900
iptables -A FORWARD -i eth0 -o tap0 -p tcp --dport 5800 -j ACCEPT
iptables -A FORWARD -i eth0 -o tap0 -p tcp --dport 5900 -j ACCEPT

exit 0

Replace your_dns_server by the IP address of your DNS server.

You may notice we forward ports 5800 and 5900. This is explained later, when we set up a remote desktop using a web browser.

In the VirtualBox network settings of your guest, use bridged network, and specify tap0 as its interface.

Start and setup the guest to use 192.168.1.100 as IP address and 192.168.1.1 as default gateway and DNS server (the latter being forwarded to the real DNS server).

Remote controlling your guests

You can SSH into your linux box and use the following command to startup a guest remotely:

VBoxManage startvm your_guest_name --type vrdp

Use VBoxManage (without arguments) to see what you can do on the command line.

Remote desktop using a web browser

You may have noticed that VirtualBox has a built-in RDP server, which you can enable and this works very well with the rdesktop client.

By default only one client can connect to the built-in RDP server at a given time. To allow simultaneous connections, use this command:

VBoxManage modifyvm "VM name" --vrdpmulticon on

You can also use the built-in RDP-server some guests (like Windows XP) provide. In that case you need to forward port 3389 in the same way we forwarded ports 5800 and 5900 earlier. The reason for forwarding 5800 and 5900 is the fact that there is no good Java based applet for connecting to RDP servers, so I use VNC instead. You may find some Java based RDP clients, like ProperJavaRDP and Elusiva, but those projects are dead and not working for me.

VNC uses port 5900. Port 5800 is used for the VNC web server.

There are many implementations of VNC, the best ones are RealVNC, TightVNC and UltraVNC. For Windows XP guests I use UltraVNC. Installation is pretty straightforward except for the display hook driver. After UltraVNC is installed, use the explorer to extract "c:\program files\UltraVNC\drivers.zip".  Then double click on "c:\program files\UltraVNC\drivers\driver\XP\install.bat".

Reboot the guest and enable the driver in the UltraVNC settings.

Now to use the Java client, just point a browser to http://your_host:5800/. You may notice the defaults are not good (restriction of 64 colors etc.). You can create the following HTML file, modify it to suit your needs and host it on a web server. This way you can create remote desktop hyperlinks to other VNC hosts as well.

<html>
        <head>
                <title>appletTitle</title>
        </head>
        <body>
                <applet code="VncViewer.class" width="1024" height="768">
                        <param name="archive" value="http://your_host:5800/VncViewer.jar">
                        <param name="host" value="your_host">
                        <param name="port" value="5900">
                        <param name="Open New Window" value="No">
                        <param name="Show Controls" value="No">
                        <param name="View only" value="No">
                        <param name="JPEG image quality" value="JPEG off">
                        <param name="Restricted colors" value="Full">
                </applet>
        </body>
</html>

Reference: http://forum.ultravnc.info/viewtopic.php?p=57961

USB devices

In Virtualbox there is a setting called USB filters, which determines which USB devices are available in guest systems running in Virtualbox. It's easiest to specify an empty filter which matches all USB devices. In the menu of the guest window you can enable (connect) and disable (disconnect) USB devices. If an USB device is greyed out, it might be a permissions problem. Check if the current user is a member of the vboxusers group with the groups command. If the user is not a member then add this user to the vboxusers group using the following command:

adduser <user> vboxusers

 

I wish more writers of this

I wish more writers of this sort of substance would take the time you did to investigate and compose so well. I am exceptionally awed with your vision and knowledge. Yio Chu Kang EC

Much thanks for composing

Much thanks for composing such an intriguing article on this point. This has truly made me think and I plan to peruse more. cheap55printing.com

I wish more writers of this

I wish more writers of this sort of substance would take the time you did to investigate and compose so well. I am exceptionally awed with your vision and knowledge. Clash of Clans Gems

I wish more writers of this

I wish more writers of this sort of substance would take the time you did to investigate and compose so well. I am exceptionally awed with your vision and knowledge. correx

If it's not too much trouble

If it's not too much trouble share more like that. RENT A CAR

Your substance is absolutely

Your substance is absolutely splendid from numerous points of view. I think this is connecting with and educational material. Much thanks to you such a great amount for thinking about your substance and your perusers. low cost printers

Merely a smiling visitant

Merely a smiling visitant here to share the love (:, btw outstanding style. Sex Positions

I wish more writers of this

I wish more writers of this sort of substance would take the time you did to investigate and compose so well. I am exceptionally awed with your vision and knowledge. Ponta do Ouro Kangela Estate

I needed to thank you for

I needed to thank you for this magnificent read!! I unquestionably adored each and every piece of it. I have you bookmarked your site to look at the new stuff you post. official statement

Exceptionally pleasant

Exceptionally pleasant article, I appreciated perusing your post, extremely decent share, I need to twit this to my adherents. Much appreciated!. bonuses

"Boredom is a killer—which is

"Boredom is a killer—which is why a cure for boredom can be a lifesaver. The truth is, portable Bluetooth speakers have been the handheld solution to elevate the moment, whether at the beach, the middle of a party, or a lazy afternoon at home for years now—and your brand can get in on that excitement. Right now—with C2BPromo.com, you can put you logo on a wide array of Promotional Bluetooth Speakers, in all different shapes and sizes, from waterproof to resilient wood—with models coming in at 6-7 dollars all the way up to high-end luxury designs. Multiple surfaces on almost every customized Bluetooth speaker can showcase your logo—so no matter which way it’s turned, your name is always center staged." Branded Bluetooth Speaker

A debt of gratitude is in

A debt of gratitude is in order for giving late reports with respect to the worry, I anticipate read more. curso adwords

This is a great inspiring

This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information... Hero Instinct

Business solutions in

Business solutions in Singapore I imagine that much obliged for the valuabe data and bits of knowledge you have so given here. app development singapore

Your work is great and I

Your work is great and I value you and bouncing for some more enlightening posts. Much obliged to you for sharing extraordinary data to us. economical prints

I am trusting the same best

I am trusting the same best exertion from you later on also. Indeed your exploratory writing abilities has propelled me. charm bracelets NZ

I wish more writers of this

I wish more writers of this sort of substance would take the time you did to investigate and compose so well. I am exceptionally awed with your vision and knowledge. miami to key west tour guides

This is an incredible post. I

This is an incredible post. I like this topic.This site has heaps of advantage.I discovered numerous fascinating things from this site. It helps me in numerous ways.Thanks for posting this once more. college of court reporting

informative Blog! Companion,

informative Blog! Companion, this site may be fabolous, i simply like it. Drug Law Claims

I wish more writers of this

I wish more writers of this sort of substance would take the time you did to investigate and compose so well. I am exceptionally awed with your vision and knowledge. http://rewardedessay.blogspot.com

I am unquestionably making

I am unquestionably making the most of your site. You unquestionably have some extraordinary knowledge and awesome stories. bonuses

valuable data on themes that

valuable data on themes that bounty are intrigued on for this great post.Admiring the time and exertion you put into your b!.. miami to key west tour guides

I wish more writers of this

I wish more writers of this sort of substance would take the time you did to investigate and compose so well. I am exceptionally awed with your vision and knowledge. low cost brochures printing

Its an extraordinary joy

Its an extraordinary joy perusing your post.Its brimming with data I am searching for and I want to post a remark that "The substance of your post is marvelous" Great work. this site

A debt of gratitude is in

A debt of gratitude is in order for setting aside an ideal opportunity to examine this, I feel emphatically about it and affection adapting more on this theme. On the off chance that conceivable, as you pick up skill, would you psyche overhauling your online journal with more data? It is to a great degree supportive for me. helpful resources

Hey what a splendid post I

Hey what a splendid post I have run over and trust me I have been scanning out for this comparative sort of post for recent week and scarcely ran over this. Much thanks and will search for more postings from you. here

Much obliged to you for such

Much obliged to you for such an elegantly composed article. It's brimming with astute data and diverting depictions. Your perspective is the best among numerous. read full article

I wish more writers of this

I wish more writers of this sort of substance would take the time you did to investigate and compose so well. I am exceptionally awed with your vision and knowledge. Cheap fiftyfive printing Discount Code

This is really an awesome

This is really an awesome read for me. I have bookmarked it and I am anticipating perusing new articles. Keep doing awesome!. find out more

This is extremely fascinating

This is extremely fascinating substance! I have completely appreciated perusing your focuses and have reach the conclusion that you are right about a significant number of them. You are extraordinary. delhi to jaipur cab

New site is solid. A debt of

New site is solid. A debt of gratitude is in order for the colossal exertion. kit tattoo

A debt of gratitude is in

A debt of gratitude is in order for the blog entry mate! Keep them coming... packers and movers in pune

I wish more writers of this

I wish more writers of this sort of substance would take the time you did to investigate and compose so well. I am exceptionally awed with your vision and knowledge. places to visit in ajmer

Much thanks to you for

Much thanks to you for peopling get the data they require. Extraordinary stuff not surprisingly. Keep up the colossal work! official statement

The Ideal Dream Laser Clinic

The Ideal Dream Laser Clinic is a cosmetic-medical center offering only certified, result-oriented hair removal, Skin rejuvenating, body countering and weight loss services for both men and women. Our team includes certified technicians, Registered Dietitian and specialized skin and laser consultants. We offer the highest level of safety and service in an environment where the main priority is your safety, health and privacy. Our clinic located in heart of north York , Yonge and Steeles area close to public transit. 5 min walk to center of Yonge and Steeles, 88 Steeles Ave. East Toronto. laser clinic toronto

I felt exceptionally glad

I felt exceptionally glad while perusing this site. This was truly exceptionally enlightening site for me. I truly preferred it. This was truly a sincere post. Much obliged!. Promotional Gift Items

Much thanks for composing

Much thanks for composing such an intriguing article on this point. This has truly made me think and I plan to peruse more. fiftyfive print

This is extremely fascinating

This is extremely fascinating substance! I have completely appreciated perusing your focuses and have reach the conclusion that you are right about a significant number of them. You are extraordinary. delhi to jaipur cab

New site is solid. A debt of

New site is solid. A debt of gratitude is in order for the colossal exertion. kit tattoo

A debt of gratitude is in

A debt of gratitude is in order for the blog entry mate! Keep them coming... packers and movers in pune

I wish more writers of this

I wish more writers of this sort of substance would take the time you did to investigate and compose so well. I am exceptionally awed with your vision and knowledge. places to visit in ajmer

shiprabrock

Hey – great blog, just looking around some blogs, seems a really nice platform you are using. I’m currently using WordPress for a few of my blogs but looking to change one of them over to a platform similar to yours as a trial run. Anything in particular you would recommend about it? ABONNEMENT IPTV

This is an extraordinary

This is an extraordinary article much obliged for sharing this enlightening data. I will visit your website consistently for some most recent post. I will visit your web journal consistently for Some most recent post. forehead pimples

Disini penggunaan untuk

Disini penggunaan untuk meringue jauh lebih sederhana: semua yang akan Anda lakukan adalah melipatnya ke dalam adonan pancake. Udara ekstra yang telah dimasukkan oleh putih telur berkembang seperti http://krachelart.com/UserProfile/tabid/43/userId/29610/Default.aspx http://krachelart.com/UserProfile/tabid/43/userId/29611/Default.aspx http://www.tpt.com/commoditymanagementblog/UserProfile/tabid/43/userId/1... http://www.tpt.com/commoditymanagementblog/UserProfile/tabid/43/userId/1... kue pancake, membuat mereka menjadi ringan. Sejauh penyembuh pancake buttermilk pergi, ada beberapa givens: Lemak susu, dalam bentuk mentega cair atau susu, sangat penting. Tidak hanya menambahkan kekayaan dan rasa ke dalam campuran, tapi dengan melapisi tepung dan membatasi perkembangan gluten, ini juga memastikan agar pancake Anda tetap empuk. Telur http://tgbks.enter.co.nz/UserProfile/tabid/111/userId/70771/Default.aspx http://tgbks.enter.co.nz/UserProfile/tabid/111/userId/70773/Default.aspx http://www.genina.com/user/profile/562465.page http://www.genina.com/user/profile/562466.page http://www.workstation.net/user-profile/userid/3183 membantu mengatur pancake saat mereka memasak, serta memberikan beberapa tambahan angkat. Buttermilk jelas merupakan bagian dari persamaan, tapi saya suka pancake saya ekstra-tajam, dan buttermilk lurus tidak memotongnya untuk saya. Meningkatkan kuantitas tidak bekerja-yang akhirnya meningkatkan rasio cairan-ke-padat dari kehancuran. http://www.workstation.net/user-profile/userid/3184 http://affiliates.avca.org/ihsvca/UserProfile/tabid/186/UserId/33148/Def... http://affiliates.avca.org/ihsvca/UserProfile/tabid/186/UserId/33149/Def... http://www.recaap.org/UserProfile/tabid/43/userId/30439/Default.aspx http://www.recaap.org/UserProfile/tabid/43/userId/30440/Default.aspx Sebagai gantinya, saya mengganti bagian dari buttermilk dengan krim asam yang bagus. Ini sama sekali tidak lembab dari pada buttermilk dan lebih asam,

shiprabrock

Hi I found your site by mistake when i was searching yahoo for this acne issue, I must say your site is really helpful I also love the design, its amazing!. I don’t have the time at the moment to fully read your site but I have bookmarked it and also add your RSS feeds. I will be back in a day or two. thanks for a great site. anonymous browser

Only a grinning visitant here

Only a grinning visitant here to share the adoration (:, btw exceptional what happens when you refinance your home

Thanks for sharing this

Thanks for sharing this useful info.. design book cover

I wish more writers of this

I wish more writers of this sort of substance would take the time you did to investigate and compose so well. I am exceptionally awed with your vision and knowledge. macchinette tatuaggi

Rene Suhardono in his book

Rene Suhardono in his book Your Job Is Not Your Career states that Passion is not something you are skilled at doing, but something you enjoy doing it. Because you enjoy it, to the point that you never think https://www.zillow.com/profile/martabak-bakar-bali/ https://www.goodreads.com/questions/1060760-resep-cimol-ada https://www.goodreads.com/questions/1060762-resep-ayam-bakar-ada https://www.behance.net/gallery/52178019/Resep-Cimol-Aneka-Warna https://www.behance.net/gallery/52178385/Resep-Martabak-Aneka-Kreasi to stop doing it, because stop doing it means losing something fun in your life that is very meaningful. Therefore, the lucky ones are the ones who recognize their passion, and work according to their passion. Such luck is also experienced by the owner of Jade Imperial, Surabaya. Starting from the owner's love with Chinese Food, stands Chinese Food restaurant named Jade Imperial Fine Dining Restauran. This place is on Jl. Raya Kupang Indah No. 27, Surabaya. The owner does not want to half-half in building this beloved business. This is evident https://fundrazr.com/campaigns/e1EZS6/ab/75Ua50 https://fundrazr.com/campaigns/61EZT8/ab/75Ua50 http://www.soaw.org/component/ccboard/view-postlist/forum-4-rideboard-co... http://www.soaw.org/component/ccboard/view-postlist/forum-4-rideboard-co... https://www.zillow.com/profile/resep-cilok-rasa-oke/ from the varied menu presented, the presence of live seafood that ensures the freshness of its raw materials, and also various Dim Sum menu. No half-hearted with passionnya, the chefs who cook all these foods are presented directly from Hong Kong and China. This is what happens when effort and work come from the heart, everything is done wholeheartedly and no obstacles are heavy. Differences Jade Imperial Resto with Chinese Food Resto in general lies in style and taste. Chinese food restaurant generally comes with Chinese Nouvelle Cuisine style. This can be seen with https://listovnik.sio.si/group/martabak-bakar-terasa-hangat http://heybradfords.com/mahara/group/view.php?id=95 http://heybradfords.com/mahara/group/view.php?id=96 http://mahara.hu/mahara/group/view.php?id=838 http://mahara.hu/mahara/group/view.php?id=839 the portion served at least 5 people can enjoy. In Jade Imperial, the portion is reduced so that it can be consumed only by 2 people, even 1 person though. In the use of raw materials, came the use of durian and Tom Yam ingredients in the dishes provided. The taste that is displayed even feels more light (light) but still gives a sense that fits in the tongue of the audience. Here you can try various Dim Sum to Steamboat Menu. Dim sum that you can choose as the opening menu include Xiao Long Bao, Bakpaco Roast Cha Siu contents, Bakpao Liu Sa a la Jade Imperial, and many more. The menus you can enjoy at Jade Imperial include: Shrimp Siew-Ma Team, Saos Taos Chicken Leg Team, Chinese Chicken Teams, Asparagus Soup or Crab Corn, Sui Ciao Fried Shrimp, Lumpia Durian Jade Imperial, Lobster Fried with fragrant leaves, Mud Grouper Hongkong Team, http://groupspaces.com/bisnisterbaik/pages/cimol http://groupspaces.com/bisnisterbaik/pages/resep-martabak-manis-jagung https://www.mindtalk.com/channel/create/post/cireng-terlezat-85904019788... https://www.mindtalk.com/channel/create/post/martabak-bakar-859040885613... https://listovnik.sio.si/group/resep-cireng-enak-hari-ini Chen Jiang Chicken Ribs, and many more. For those of you who only eat vegetarian menu, there is also a vegetarian La Mien, vegetarian Kwetiaw, red bean cake, onde-onde and bakpao content of green beans. All dishes are presented with the sincerity of the owner and the cookers you can enjoy also at Tunjungan Plaza and Galaxy Mall, Surabaya.

jiofi local html

SecretSubject offers quality information on various topics.The latest needs and aspirations of people are reflected in these web pages.Visit our website now jiofi local html