2014-06-06 0:07 GMT+09:00 Steven McDowall via smartos-discuss <
[email protected]>:
>
> To get a Windows 7 box to see the proper # of cores I had to code the
> following into the VM JSON config file:
>
> "vcpus": 8,
> "qemu_extra_opts": "-smp cores=4,sockets=2",
>
>
I add "qemu_extra_opts": "-smp cores=2,sockets=1",it doesnot works.
here is the output
[root@smartos60 ~]# vmadm get afa116a4-5d3b-4a2a-8b33-88548d9c79dd
{
"zonename": "afa116a4-5d3b-4a2a-8b33-88548d9c79dd",
"autoboot": true,
"brand": "kvm",
"limit_priv":
"default,-file_link_any,-net_access,-proc_fork,-proc_info,-proc_session",
"v": 1,
"create_timestamp": "2014-03-30T09:59:56.116Z",
"zfs_io_priority": 100,
"max_lwps": 2000,
"max_physical_memory": 5120,
"max_locked_memory": 5120,
"max_swap": 5120,
"billing_id": "00000000-0000-0000-0000-000000000000",
"owner_uuid": "00000000-0000-0000-0000-000000000000",
"resolvers": [
"8.8.8.8",
"8.8.4.4"
],
"alias": "62.win7",
"ram": 4096,
"vcpus": 2,
"cpu_type": "host",
"disks": [
{
"path":
"/dev/zvol/rdsk/zones/afa116a4-5d3b-4a2a-8b33-88548d9c79dd-disk0",
"boot": true,
"model": "virtio",
"media": "disk",
"image_size": 40960,
"image_uuid": "c0ef78a6-b7c5-11e3-b5ac-cbd9233722a5",
"zfs_filesystem": "zones/afa116a4-5d3b-4a2a-8b33-88548d9c79dd-disk0",
"zpool": "zones",
"size": 61440,
"compression": "lz4",
"refreservation": 40960,
"block_size": 8192
}
],
"nics": [
{
"interface": "net0",
"mac": "32:3c:66:e1:25:7c",
"nic_tag": "admin",
"gateway": "172.16.1.254",
"ip": "172.16.1.62",
"netmask": "255.255.255.0",
"model": "virtio",
"primary": true
}
],
"cpu_shares": 400,
"qemu_extra_opts": "-smp cores=2,sockets=1",
"uuid": "afa116a4-5d3b-4a2a-8b33-88548d9c79dd",
"zone_state": "running",
"zonepath": "/zones/afa116a4-5d3b-4a2a-8b33-88548d9c79dd",
"zoneid": 4,
"last_modified": "2014-06-06T21:25:35.000Z",
"firewall_enabled": false,
"server_uuid": "016d67c3-e843-cb11-a874-f51a56f622a3",
"platform_buildstamp": "20140418T031241Z",
"state": "running",
"pid": 79603,
"customer_metadata": {},
"internal_metadata": {},
"routes": {},
"tags": {},
"quota": 10,
"zfs_root_compression": "lz4",
"zfs_root_recsize": 131072,
"zfs_filesystem": "zones/afa116a4-5d3b-4a2a-8b33-88548d9c79dd",
"zpool": "zones",
"snapshots": []
}
[root@smartos60 ~]# vmadm info afa116a4-5d3b-4a2a-8b33-88548d9c79dd
{
"status": {
"hwsetup": true,
"singlestep": false,
"running": true
},
"version": {
"qemu": {
"micro": 1,
"minor": 14,
"major": 0
},
"package": " (qemu-kvm-devel)"
},
"chardev": [
{
"filename": "unix:/tmp/vm.qmp,server",
"label": "qmp"
},
{
"filename": "unix:/tmp/vm.console,server",
"label": "serial0"
},
{
"filename": "unix:/tmp/vm.ttyb,server",
"label": "serial1"
}
],
"block": [
{
"device": "virtio0",
"locked": false,
"removable": false,
"inserted": {
"ro": false,
"drv": "raw",
"encrypted": false,
"file":
"/dev/zvol/rdsk/zones/afa116a4-5d3b-4a2a-8b33-88548d9c79dd-disk0"
},
"type": "hd"
},
{
"device": "ide1-cd0",
"locked": false,
"removable": true,
"type": "cdrom"
},
{
"device": "floppy0",
"locked": false,
"removable": true,
"type": "floppy"
},
{
"device": "sd0",
"locked": false,
"removable": true,
"type": "floppy"
}
],
"blockstats": [
{
"device": "virtio0",
"parent": {
"stats": {
"wr_highest_offset": 27218722304,
"wr_bytes": 30967808,
"wr_operations": 4081,
"rd_bytes": 450263040,
"rd_operations": 26499
}
},
"stats": {
"wr_highest_offset": 27218722304,
"wr_bytes": 30967808,
"wr_operations": 4081,
"rd_bytes": 450263040,
"rd_operations": 26499
}
},
{
"device": "ide1-cd0",
"stats": {
"wr_highest_offset": 0,
"wr_bytes": 0,
"wr_operations": 0,
"rd_bytes": 0,
"rd_operations": 0
}
},
{
"device": "floppy0",
"stats": {
"wr_highest_offset": 0,
"wr_bytes": 0,
"wr_operations": 0,
"rd_bytes": 0,
"rd_operations": 0
}
},
{
"device": "sd0",
"stats": {
"wr_highest_offset": 0,
"wr_bytes": 0,
"wr_operations": 0,
"rd_bytes": 0,
"rd_operations": 0
}
}
],
"cpus": [
{
"current": true,
"CPU": 0,
"pc": -8246265165374,
"halted": true,
"thread_id": 3
},
{
"current": false,
"CPU": 1,
"pc": 1008839,
"halted": true,
"thread_id": 4
}
],
"pci": [
{
"bus": 0,
"devices": [
{
"bus": 0,
"qdev_id": "",
"slot": 0,
"class_info": {
"class": 1536,
"desc": "Host bridge"
},
"id": {
"device": 32902,
"vendor": 4663
},
"function": 0,
"regions": []
},
{
"bus": 0,
"qdev_id": "",
"slot": 1,
"class_info": {
"class": 1537,
"desc": "ISA bridge"
},
"id": {
"device": 32902,
"vendor": 28672
},
"function": 0,
"regions": []
},
{
"bus": 0,
"qdev_id": "",
"slot": 1,
"class_info": {
"class": 257,
"desc": "IDE controller"
},
"id": {
"device": 32902,
"vendor": 28688
},
"function": 1,
"regions": [
{
"bar": 4,
"size": 16,
"address": 49280,
"type": "io"
}
]
},
{
"bus": 0,
"qdev_id": "",
"irq": 10,
"slot": 1,
"class_info": {
"class": 3075,
"desc": "USB controller"
},
"id": {
"device": 32902,
"vendor": 28704
},
"function": 2,
"regions": [
{
"bar": 4,
"size": 32,
"address": 49216,
"type": "io"
}
]
},
{
"bus": 0,
"qdev_id": "",
"irq": 9,
"slot": 1,
"class_info": {
"class": 1664,
"desc": "Bridge"
},
"id": {
"device": 32902,
"vendor": 28947
},
"function": 3,
"regions": []
},
{
"bus": 0,
"qdev_id": "",
"slot": 2,
"class_info": {
"class": 768,
"desc": "VGA controller"
},
"id": {
"device": 4660,
"vendor": 4369
},
"function": 0,
"regions": [
{
"prefetch": true,
"mem_type_64": false,
"bar": 0,
"size": 16777216,
"address": 4244635648,
"type": "memory"
},
{
"prefetch": false,
"mem_type_64": false,
"bar": 6,
"size": 65536,
"address": -1,
"type": "memory"
}
]
},
{
"bus": 0,
"qdev_id": "",
"irq": 0,
"slot": 3,
"class_info": {
"class": 512,
"desc": "Ethernet controller"
},
"id": {
"device": 6900,
"vendor": 4096
},
"function": 0,
"regions": [
{
"bar": 0,
"size": 32,
"address": 49248,
"type": "io"
},
{
"prefetch": false,
"mem_type_64": false,
"bar": 1,
"size": 4096,
"address": 4273930240,
"type": "memory"
},
{
"prefetch": false,
"mem_type_64": false,
"bar": 6,
"size": 65536,
"address": -1,
"type": "memory"
}
]
},
{
"bus": 0,
"qdev_id": "",
"irq": 10,
"slot": 4,
"class_info": {
"class": 256,
"desc": "SCSI controller"
},
"id": {
"device": 6900,
"vendor": 4097
},
"function": 0,
"regions": [
{
"bar": 0,
"size": 64,
"address": 49152,
"type": "io"
},
{
"prefetch": false,
"mem_type_64": false,
"bar": 1,
"size": 4096,
"address": 4273934336,
"type": "memory"
}
]
}
]
}
],
"kvm": {
"enabled": true,
"present": true
},
"vnc": {
"host": "172.16.1.60",
"port": 41702,
"display": 35802
},
"spice": {}
}
> But this was direct (SmartOS on the metal, no VMWare) so your mileage may
> vary..
>
>
> On Jun 5, 2014, at 10:28 AM, Robert Mustacchi via smartos-discuss <
> [email protected]> wrote:
>
> On 06/05/2014 03:20 AM, Qian Wanpeng via smartos-discuss wrote:
>
> I use Windows task manager. only one cpu appears.
>
> as I said before. just add another ESXi layer. (Nested VM), the zpool is
> the same, so the vm config.
> after windwos boots, it show two cpus.
>
>
> What version of Windows and VMware are you using in this case? Does your
> version of VMware have nested virtualization support?
>
>
> -------------------------------------------
> smartos-discuss
> Archives: https://www.listbox.com/member/archive/184463/=now
> RSS Feed:
> https://www.listbox.com/member/archive/rss/184463/25687768-afcd9333
> Modify Your Subscription: https://www.listbox.com/member/?&
>
> Powered by Listbox: http://www.listbox.com
>
>
> *smartos-discuss* | Archives
> <https://www.listbox.com/member/archive/184463/=now>
> <https://www.listbox.com/member/archive/rss/184463/25691541-596702ff> |
> 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