Hi Josh,
Thanks for the response. I powered down the machine and back up and the
info command is now OK.
The machine was up for several months and at sometime in that period the
info command worked when I last tried. (to get vnc port number)
I guess the log is now gone; the startvm for
ba6670e8-8f48-4afb-b78f-9304eaed8eb5
#!/usr/bin/bash
exec >/tmp/vm.startvm.log 2>&1
set -o xtrace
if [[ -x /startvm.zone ]]; then
exec /smartdc/bin/qemu-exec /startvm.zone "-m" "1024" "-name"
"ba6670e8-8f48-4afb-b78f-9304eaed8eb5" "-uuid" "ba6670e8-8f48-4afb-b7
8f-9304eaed8eb5" "-cpu" "qemu64" "-drive"
"file=/dev/zvol/rdsk/zones/ba6670e8-8f48-4afb-b78f-9304eaed8eb5-disk0,if=virtio,index=0,media
=disk,boot=on" "-boot" "order=cd" "-device"
"virtio-net-pci,mac=f2:78:53:2f:7e:6d,tx=timer,x-txtimer=200000,x-txburst=128,vlan=0"
"-net
"
"vnic,name=net0,vlan=0,ifname=net0,ip=192.168.1.32,netmask=255.255.255.0,gateway_ip=192.168.1.1,hostname=ba6670e8-8f48-4afb-b78f-9304
eaed8eb5" "-smbios" "type=1,manufacturer=Joyent,product=SmartDC
HVM,version=7.20150123T200224Z,serial=ba6670e8-8f48-4afb-b78f-9304eaed8
eb5,uuid=ba6670e8-8f48-4afb-b78f-9304eaed8eb5,sku=001,family=Virtual
Machine" "-pidfile" "/tmp/vm.pid" "-vga" "std" "-chardev" "socket,
id=qmp,path=/tmp/vm.qmp,server,nowait" "-qmp" "chardev:qmp" "-chardev"
"socket,id=serial0,path=/tmp/vm.console,server,nowait" "-serial"
"chardev:serial0" "-chardev"
"socket,id=serial1,path=/tmp/vm.ttyb,server,nowait" "-serial"
"chardev:serial1" "-vnc" "unix:/tmp/vm.vnc"
"-parallel" "none" "-usb" "-usbdevice" "tablet" "-k" "en-us"
else
exec /smartdc/bin/qemu-exec /smartdc/bin/qemu-system-x86_64 "-m"
"1024" "-name" "ba6670e8-8f48-4afb-b78f-9304eaed8eb5" "-uuid" "ba6
670e8-8f48-4afb-b78f-9304eaed8eb5" "-cpu" "qemu64" "-drive"
"file=/dev/zvol/rdsk/zones/ba6670e8-8f48-4afb-b78f-9304eaed8eb5-disk0,if=vi
rtio,index=0,media=disk,boot=on" "-boot" "order=cd" "-device"
"virtio-net-pci,mac=f2:78:53:2f:7e:6d,tx=timer,x-txtimer=200000,x-txburst
=128,vlan=0" "-net"
"vnic,name=net0,vlan=0,ifname=net0,ip=192.168.1.32,netmask=255.255.255.0,gateway_ip=192.168.1.1,hostname=ba6670e8-8
f48-4afb-b78f-9304eaed8eb5" "-smbios"
"type=1,manufacturer=Joyent,product=SmartDC
HVM,version=7.20150123T200224Z,serial=ba6670e8-8f48-4
afb-b78f-9304eaed8eb5,uuid=ba6670e8-8f48-4afb-b78f-9304eaed8eb5,sku=001,family=Virtual
Machine" "-pidfile" "/tmp/vm.pid" "-vga" "std" "
-chardev" "socket,id=qmp,path=/tmp/vm.qmp,server,nowait" "-qmp"
"chardev:qmp" "-chardev" "socket,id=serial0,path=/tmp/vm.console,server
,nowait" "-serial" "chardev:serial0" "-chardev"
"socket,id=serial1,path=/tmp/vm.ttyb,server,nowait" "-serial"
"chardev:serial1" "-vnc"
"unix:/tmp/vm.vnc" "-parallel" "none" "-usb" "-usbdevice" "tablet" "-k"
"en-us"
fi
exit 1
file
/zones/<uuid>/root/tmp/vm.qmp
exists
I'll keep an eye out for it; this machine will get more use now as the
old esxi server being taken out any day.
Thanks again
Regards
Will
On 28/09/2015 17:48, Josh Wilsdon wrote:
I'm having problems getting info from vms on a smartos machine
...
Any help would be appreciated!
Hi Will,
Can you tell me:
1) is the vmadmd service online? Are there errors in its log?
2) what the /zones/<uuid>/root/startvm file looks like for one of
these VMs?
3) does the /zones/<uuid>/root/tmp/vm.qmp socket exist?
That'll help me rule out a few things to start with.
Thanks,
Josh
*smartos-discuss* | Archives
<https://www.listbox.com/member/archive/184463/=now>
<https://www.listbox.com/member/archive/rss/184463/27709494-c1d4d27e>
| Modify
<https://www.listbox.com/member/?&>
Your Subscription [Powered by Listbox] <http://www.listbox.com>
-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription:
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com