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]>:
>
> 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
> <https://github.com/joyent/smartos-live/blob/master/src/vm/man/vmadm.1m.md>
> (I don't have a vnc password).
>
> Thanks
>
> Sean.
> From: Peter Kelm [[email protected] <mailto:[email protected]>]
> Sent: 08 March 2016 20:10
> To: [email protected]
> <mailto:[email protected]>
> 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]
>> <x-msg://4/redir.aspx?REF=MopfWoGyev-YHLNpW646Po0H3DjXnlIiWv6wGqSzGP6htmH8jUfTCAFtYWlsdG86c2VhbkB0cml0b25pYS5jby51aw..>>:
>>
>> 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
> <https://www.listbox.com/member/archive/184463/=now>
> <https://www.listbox.com/member/archive/rss/184463/25252853-72390e47> |
> Modify <https://www.listbox.com/member/?&> Your Subscription
> <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