Hi guys.
I mention this before. I have to start a new thread.
I have a notebook, Thinkpad T420, intel i5 2540M CPU with 16GB ram. runing
[root@smartos60 ~]# uname -a
SunOS smartos60 5.11 joyent_20140418T031241Z i86pc i386 i86pc
I assign 2 vcpus to the guest. I just one see one CPU inside guest.
T420 -> SmartOS -> KVM guest. only see one cpu.
I test with following environment:
T420 -> VMware ESXi -> SmartOS -> KVM guest.
just add an other layer. at this time , the KVM guest can see two CPUs.
since zpools with the same disks. just add an ESXi layer.
How can I solve this problem? thanks.
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",
"cpu_shares": 100,
"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
}
],
"uuid": "afa116a4-5d3b-4a2a-8b33-88548d9c79dd",
"zone_state": "running",
"zonepath": "/zones/afa116a4-5d3b-4a2a-8b33-88548d9c79dd",
"zoneid": 1,
"last_modified": "2014-05-14T08:59:06.000Z",
"firewall_enabled": false,
"server_uuid": "016d67c3-e843-cb11-a874-f51a56f622a3",
"platform_buildstamp": "20140418T031241Z",
"state": "running",
"pid": 2500,
"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": 45274719232,
"wr_bytes": 245348687872,
"wr_operations": 7355157,
"rd_bytes": 172585278976,
"rd_operations": 6274936
}
},
"stats": {
"wr_highest_offset": 45274719232,
"wr_bytes": 245348687872,
"wr_operations": 7355157,
"rd_bytes": 172585278976,
"rd_operations": 6274936
}
},
{
"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": -8246265890366,
"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": 62978,
"display": 57078
},
"spice": {}
}
-------------------------------------------
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