How to start a virtual machine

Virtual- and physical machine helpdesk
Post Reply
aron
Posts: 26
Joined: Tue Dec 05, 2017 11:06 am

How to start a virtual machine

Post by aron » Tue Dec 05, 2017 11:23 am

Hi all!

In this post I will describe how to start a virtual machine using the qemu-system-x86_64. Additionally, I use openvswitch for networking (bridge was created as "xenbr0").

Download the necessary file from our server:

Disk image: http://threos.io/files/vm/x86_64.img (or you can use a VMDK: http://threos.io/files/vm/x86_64.vmdk)
qemu starter script (atm this requires root, because of the openvswitch -- however you can get rid of this by changing to host-only networking): http://threos.io/files/vm/start
openvswitch scripts: http://threos.io/files/vm/ovs-ifup http://threos.io/files/vm/ovs-ifdown

Before continue, edit you "start" script. Change the necessary values.
Add execution rights for: "start", "ovs-ifup" and "ovs-ifdown".

Execute the "start" script, for instance:
$ ./start

Aron

Post Reply