Posts
read more
Printing from Virtualbox
If you want to set up your system so that you can access your Linux host’s printer from a Windows VirtualBox client then:
On Your Linux Host
- Install your printer driver. Get your printer working on your host first.
- Install CUPS if it is not already installed.
- Add your printer to CUPS at
http://localhost:631/admin. - Set your virtual machine’s Network to Bridged Adapter (eth0) in Settings and connect the cable as necessary (Advanced menu).
- Startup VirtualBox.
- In a terminal, enter
ifconfigto list your current network settings and copy down your host’s (eth0) address or you can optionally access this address using Network Manager.
On You Windows Client
Posts
read more
Export VirtualBox VDI using CLI
Sometimes you may want to move a virtual machine in VirtualBox from one server to another. Once way of doing that is to export it from the command line.
- Locate the virtual machine that you want to export (I’ll use the name UbuntuServer for the one to be exported and name the new one UbuntuServerNew), and then
- Run the export command as follows:
$ vboxmanage export UbuntuServer -o UbuntuServerNew.ova
Posts
read more
How to convert VirtualBox VDI to KVM qcow2
It is easy to convert a VirtualBox VDI image to a KVM qcow2 file. You have to use the RAW file format as an intermediate.
Make sure the VirtualBox machine is shutdown.
- Convert the VDI to a raw disk image. Note: VDIs are compressed and raw images are not, so you will need to leave enough disk space for entire uncompressed disk. $ VBoxManage clonehd –format RAW vm.vdi vm.img
- Then on your KVM host: $ qemu-img convert -f raw vm.img -O qcow2 vm.qcow2