#> sudo module-assistant prepare kqemu
#> sudo module-assistant auto-install kqemu
/etc/udev/rules.d/60-kqemu.rules:
KERNEL=="kqemu", NAME="%k", MODE="0660", GROUP="kqemu"
#> sudo addgroup --system kqemu
#> sudo adduser USERNAME kqemu
#> modprobe kqemu
create a qemu image:
#> qemu-img create -f qcow2 root.qcow2 20G
install with a cd:
#> qemu -hda root.qcow2 -cdrom cd.iso -boot d
boot installed system:
#> qemu -hda root.qcow2
[ view entry ] ( 686 views ) | print article
sftp -o Ciphers=blowfish-cbc USER@HOST
[ view entry ] ( 762 views ) | print article
grub prior 0.97 only supports a inode size of 128 Bytes
To format a partition set inode size of 128 Bytes:
#> mkfs.ext3 -I 128 /dev/sda6
[ view entry ] ( 880 views ) | print article
find -name 'Pic*' -exec sh -c 'mv $1 "$(echo $1 | sed s/\\./_/g | sed s/^_/\\./g | sed s/_-//g)"' {} {} \;
[ view entry ] ( 964 views ) | print article
First get ubuntu-vm-builder from http://packages.ubuntu.com/intrepid/ubuntu-vm-builder
#> dpkg -i ubuntu-vm-builder_0.6_all.deb
I suggest to use approx for caching packages
#> sudo apt-get kvm libvirt-bin
#> sudo adduser `id -un` libvirtd (and relogin)
To have a working virio inside the guest i patched:
--- /usr/share/ubuntu-vm-builder/templates/libvirt.tmpl.orig
+++ /usr/share/ubuntu-vm-builder/templates/libvirt.tmpl
@@ -18,13 +18,14 @@
<interface type='network'>
<mac address='%MAC%'/>
<source network='default'/>
+ <model type='virtio'/>
</interface>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' listen='127.0.0.1'/>
%loop%
<disk type='file' device='disk'>
<source file='%img%'/>
- <target dev='hd%curdisk%'/>
+ <target dev='hd%curdisk%' bus='virtio'/>
</disk>
%/loop%
</devices>
#> ubuntu-vm-builder
Read More...
[ view entry ] ( 2266 views ) | print article
<<First <Back | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | Next> Last>>