KVM
Some steps to get a virtual machines on Debian/Ubuntu...
1. Install empty Debian/Ubuntu distr.
2. Install bridge-utils
$ sudo apt-get install bridge-utils
3. Add bridge interface br0 into /etc/network/interfaces as below:
auto eth0
iface eth0 inet manual
auto br0
iface br0 inet static
bridge_ports eth0
address .....
instead
allow-hotplug eth0
iface eth0 inet static
address .....
restart networking
services networking restart
if ok
go to the next step;
else
find and resolve error;
4. Install another packets for virtualization
$ sudo apt-get install qemu, qemu-kvm libvirt-bin virtinst
5. Check virt. module
$ sudo lsmod | grep kvm
if ok - go to the next step
6. Add forwarding into /etc/sysctl.conf
net.ipv4.conf.all.forwarding=1
net.ipv4.conf.all.proxy_arp=1
And after
$ sudo sysctl -p
7. Install packets for rdp access and visual maintenance of virtual hosts
$ sudo apt-get install virt-manager lxde-core xrdp
8. Add your user to /etc/group in line with libvirt:
it's need for remote maintenance
9. Connect via rdp to host and add virtual hosts.
1. Install empty Debian/Ubuntu distr.
2. Install bridge-utils
$ sudo apt-get install bridge-utils
3. Add bridge interface br0 into /etc/network/interfaces as below:
auto eth0
iface eth0 inet manual
auto br0
iface br0 inet static
bridge_ports eth0
address .....
instead
allow-hotplug eth0
iface eth0 inet static
address .....
restart networking
services networking restart
if ok
go to the next step;
else
find and resolve error;
4. Install another packets for virtualization
$ sudo apt-get install qemu, qemu-kvm libvirt-bin virtinst
5. Check virt. module
$ sudo lsmod | grep kvm
if ok - go to the next step
6. Add forwarding into /etc/sysctl.conf
net.ipv4.conf.all.forwarding=1
net.ipv4.conf.all.proxy_arp=1
And after
$ sudo sysctl -p
7. Install packets for rdp access and visual maintenance of virtual hosts
$ sudo apt-get install virt-manager lxde-core xrdp
8. Add your user to /etc/group in line with libvirt:
it's need for remote maintenance
9. Connect via rdp to host and add virtual hosts.
Комментарии
Отправить комментарий