Various config and setup notes
virsh -c qemu+ssh://usrname@host/system?socket=/var/run/libvirt/libvirt-sock
Connecting to the server will result in an error : "hangup / error event on socket". It turns out that the macosx client assumes the socket resides in /usr/local/lib whereas the ubuntu server has the socket in /var/run/libvirt/libvirt-sock — http://www.planetdevops.net/index.php/category/libvirt/
http://markus.heberling.net/tag/libvirt/
http://www.server-world.info/en/note?os=Debian_7.0&p=kvm&f=2
virt-install
-n www
-r 2048
-f /var/kvm/images/www.img
-s 20
--vcpus=2
--os-type linux
--os-variant=debianwheezy
--network bridge=br0
--nographics
--location='http://ftp.riken.jp/Linux/debian/debian/dists/wheezy/main/installer-amd64/'
--extra-args='console=tty0 console=ttyS0,115200n8 serial'
Newer version, with spice:
virt-install
--name popov
--ram 1024
-f /home/libvirt/images/popov/popov.img -s 5
--vcpus=2
--os-type linux
--os-variant=debianwheezy
--network bridge=br0
--location='http://ftp.riken.jp/Linux/debian/debian/dists/jessie/main/installer-amd64/'
--extra-args='console=tty0 console=ttyS0,115200n8 serial' --graphics spice,listen=0.0.0.0
This is needed for autostart VMs to actually autostart
# virsh net-start default
# virsh net-autostart default
# virsh autostart domainname
# virsh create domaindef.xml
# virsh define domaindef.xml
modprobe nbd max_part=63 qemu-nbd -c /dev/nbd0 image.qcow2 mount /dev/nbd0p1 /mnt/p1
Add to /etc/network/interfaces:
auto wlan0
iface wlan0 inet dhcp
wpa-ssid <ssid>
wpa-psk <password>
apt-get install incron
incrontab -l
prints user incrontab
See: http://troubleshooting-101.blogspot.ru/2012/02/windows-xp-activation-loop-cant-log-on.html
In full Safe Mode:
regsvr32 regwizc.dll
regsvr32 licdll.dll
rundll32.exe syssetup,SetupOobeBnk
It is important to wait a few minutes until the last command stops background processing before rebooting into normal mode.
See:
- http://superuser.com/questions/553197/interpreting-sensor-names
- http://www.parhelia.ch/blog/statics/k3_keys.html
/etc/sensors.d/applesmc-isa-0300.conf:
chip "applesmc-isa-0300"
label "temp1" "Ambient"
label "temp2" "CPU Die"
label "temp3" "Unknown TC0G"
label "temp4" "CPU Heatsink"
label "temp5" "CPU Proximity"
label "temp6" "Unknown TC0p"
label "temp7" "Unknown TCPG"
label "temp8" "Unknown TH0G"
label "temp9" "Hard Disk Proximity"
label "temp10" "Unknown TH0p"
label "temp11" "Unknown TM0G"
label "temp12" "Misc Motherboard Proximity TM0P"
label "temp13" "Misc Motherboard Proximity TM0p"
label "temp14" "Unknown TN0D"
label "temp15" "Unknown TN0G"
label "temp16" "Unknown TN0P"
label "temp17" "Unknown TN0p"
label "temp18" "Unknown TN1D"
label "temp19" "Unknown TN1E"
label "temp20" "Unknown TN1F"
label "temp21" "Unknown TN1G"
label "temp22" "Unknown TN1S"
label "temp23" "Unknown TNPG"
label "temp24" "Optical Disk Drive Proximity"
label "temp25" "Optical Disk Drive Proximity TO0p"
label "temp26" "Wireless Proximity"
label "temp27" "Misc Local Temp"
label "temp28" "Unknown Tp0C"