Peter,

I have not tried using the qemu_extra_opts when initially creating a vm. I used 
the vmadm update to change qemu_extra_opts after I had created the vm and setup 
the virtio drivers. I will try creating a new vm as the Windows 7 vm I was 
using refuses to run windows update. I copied the Windows 7 vm from Proxmox VE 
which is KVM+QEMU but it turns out the original had the same windows update 
issue. Apart from that the vm runs fine.

I might start with a new vanila Windows 7 SP1 vm and then use it to create a 
"golden image". I have managed to do that with Windows Server 2012 R2 and now 
have a local template (I had to sysprep the vm, create the manifest etc but it 
worked).

Sean.
________________________________
From: Peter Kelm [[email protected]]
Sent: 08 March 2016 20:51
To: [email protected]
Subject: Re: [smartos-discuss] Qemu keyboard layout -k

Sean,

That’s odd. I haven’t had any issue so far with the procedure as I described 
with both KVM Linux and Windows VMs. I haven’t found a need (yet?) to use 
qemu_opts for more than just changing the keyboard layout.

Below is the JSON for a Centos VM:

[root@santaana /opt/json]# cat centos7.json
{
"brand": "kvm",
"vcpus": 1,
"autoboot": false,
„alias": "centos",
"ram": 1024,
        "resolvers": ["192.168.0.1"],
"disks": [
{
"image_uuid": "c41bf236-dc75-11e4-88e5-038814c07c11",
"boot": true,
"model": "virtio",
"size": 10240
}
],
"nics": [
{
"nic_tag": "admin",
"model": "virtio",
"ip": "192.168.0.2",
"netmask": "255.255.255.0",
"gateway": "192.168.0.1"
}
],
"qemu_extra_opts": "-k de"
}

The file for a Windows VM would be almost identical but without the 
„image_uuid“ line. However, keep in mind that you’d need to add the virtio 
drivers to the Windows install media (or mount them from a second iso file).

What is the reason for all the qemu_opts options in your "vmadm update“ command 
below?

Best regards,

Peter

Am 08.03.2016 um 21:17 schrieb TRITONIA SOLUTIONS LIMITED 
<[email protected]<redir.aspx?REF=UgIB7VsAcIDoUrBgPjoawCu3g0jFdxraAR9pYQy9fRO_HwNUlUfTCAFtYWlsdG86c2VhbkB0cml0b25pYS5jby51aw..>>:

Peter,

I did try that option but then the vm would not start: looks like I ended up 
with "-k en-us -k en-gb" on the qemu command-line.

So I used
vmadm update <uuid> qemu_opts='-vnc unix:/tmp/vm.vnc -parallel none -usb 
-usbdevice tablet -k en-gb'

as documented in 
https://github.com/joyent/smartos-live/blob/master/src/vm/man/vmadm.1m.md<redir.aspx?REF=ypw99yIqaVw7lAQF602C8g2X6MFTx2CPIZpi-JCxpXa_HwNUlUfTCAFodHRwczovL2dpdGh1Yi5jb20vam95ZW50L3NtYXJ0b3MtbGl2ZS9ibG9iL21hc3Rlci9zcmMvdm0vbWFuL3ZtYWRtLjFtLm1k>
 (I don't have a vnc password).

Thanks

Sean.
________________________________
From: Peter Kelm 
[[email protected]<redir.aspx?REF=d6RTHe0kWo_39DjuRmO52DSbztmsmhioz2wn2Fwl6Tu_HwNUlUfTCAFtYWlsdG86cGV0ZXIua2VsbUBwZXRlcmtlbG0uY29t>]
Sent: 08 March 2016 20:10
To: 
[email protected]<redir.aspx?REF=JV_EbRUoZEmVMmXvSxUroYS9MjHmeKloc7-9mBVx_vu_HwNUlUfTCAFtYWlsdG86c21hcnRvcy1kaXNjdXNzQGxpc3RzLnNtYXJ0b3Mub3Jn>
Subject: Re: [smartos-discuss] Qemu keyboard layout -k

Sean,

This is how I use that option:

[user@host /opt]# cat german.json
{
qemu_extra_opts: "-k de"
}

You can add the qemu_extra_opts line to a VM JSON file or apply the above via 
vmadm update afterwards.

Best regards,

Peter

Am 08.03.2016 um 18:44 schrieb TRITONIA SOLUTIONS LIMITED 
<[email protected]<UrlBlockedError.aspx>>:

Hi,

I am using VNC to access some Windows vm's and the default keyboard layout is 
"en-us" whereas I need to use "en-gb". I can see the "-k en-us" option in the 
vm.startvm.log but cannot find the appropriate vmadm json value to change it.

I know I could use RDP but that restricts what you can do.

Sean Weatherall.
________________________________

smartos-discuss | 
Archives<redir.aspx?REF=p3nPGFxW02vmbkAQU-a1SXiPLw7ANPwcrswBvt520v-_HwNUlUfTCAFodHRwczovL3d3dy5saXN0Ym94LmNvbS9tZW1iZXIvYXJjaGl2ZS8xODQ0NjMvPW5vdw..>
 
[https://www.listbox.com/images/feed-icon-10x10.jpg31e6b2b.jpg?uri=aHR0cHM6Ly93d3cubGlzdGJveC5jb20vaW1hZ2VzL2ZlZWQtaWNvbi0xMHgxMC5qcGc]
 
<redir.aspx?REF=GnR43TKa2ThKt5o4jyHIVMwoD9SrxBn8CGo0C0_xsk-_HwNUlUfTCAFodHRwczovL3d3dy5saXN0Ym94LmNvbS9tZW1iZXIvYXJjaGl2ZS9yc3MvMTg0NDYzLzI4MDQzODcyLTM3NDNiZWMz>
  | 
Modify<redir.aspx?REF=oj3FqIhy4yKoQfnQQ3OEWjCtfFGnoZoOxlb8CWPeINIZgQVUlUfTCAFodHRwczovL3d3dy5saXN0Ym94LmNvbS9tZW1iZXIvP21lbWJlcl9pZD0yODA0Mzg3MiZpZF9zZWNyZXQ9MjgwNDM4NzItNWYwMjI3M2Q.>
 Your Subscription 
[https://www.listbox.com/images/listbox-logo-small.png31e6b2b.png?uri=aHR0cHM6Ly93d3cubGlzdGJveC5jb20vaW1hZ2VzL2xpc3Rib3gtbG9nby1zbWFsbC5wbmc]
 
<redir.aspx?REF=lI6L9rZvcCNGksE1n5-zSeXS7LOYajNi9r8csakm8pcZgQVUlUfTCAFodHRwOi8vd3d3Lmxpc3Rib3guY29t>



-------------------------------------------
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

Reply via email to