Skip to content

Instantly share code, notes, and snippets.

@jubalskaggs
Created January 27, 2019 22:54
Show Gist options
  • Save jubalskaggs/8edb2f3452581579ad1aa9cbada9c99b to your computer and use it in GitHub Desktop.
Save jubalskaggs/8edb2f3452581579ad1aa9cbada9c99b to your computer and use it in GitHub Desktop.
# vmadm get output
[root@headnode (hq) ~]# vmadm get $(vm winsrv0)
{
"zonename": "ace5b252-b717-c2ea-f37c-bccebdf53bf3",
"autoboot": true,
"brand": "bhyve",
"limit_priv": "default,-file_link_any,-net_access,-proc_fork,-proc_info,-proc_session",
"v": 1,
"create_timestamp": "2019-01-27T09:29:26.349Z",
"cpu_shares": 64,
"max_lwps": 16384,
"max_msg_ids": 4096,
"max_sem_ids": 4096,
"max_shm_ids": 4096,
"max_shm_memory": 8192,
"zfs_io_priority": 16383,
"max_physical_memory": 8448,
"max_locked_memory": 8448,
"max_swap": 16384,
"cpu_cap": 100,
"billing_id": "620102c2-cfc3-ec0e-d3bf-d1963d2f5473",
"owner_uuid": "4847687e-9a9e-423b-a048-b56442a6fd02",
"archive_on_delete": true,
"disk_driver": "virtio",
"resolvers": [
"8.8.8.8",
"8.8.4.4"
],
"alias": "winsrv0",
"ram": 8192,
"vcpus": 4,
"device": null,
"disks": [
{
"path": "/dev/zvol/rdsk/zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0",
"boot": false,
"model": "virtio",
"media": "disk",
"image_size": 10240,
"image_uuid": "00000000-0000-0000-0000-000000000000",
"pci_slot": "0:4:0",
"zfs_filesystem": "zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0",
"zpool": "zones",
"size": 81920,
"compression": "off",
"refreservation": 84484.5,
"block_size": 8192
},
{
"path": "/dev/zvol/rdsk/zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk1",
"boot": false,
"model": "virtio",
"media": "disk",
"pci_slot": "0:4:1",
"zfs_filesystem": "zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk1",
"zpool": "zones",
"size": 102400,
"compression": "off",
"refreservation": 105605.25,
"block_size": 8192
}
],
"bootrom": "uefi",
"vnc_port": 53535,
"com1": "/dev/zconsole",
"com2": "socket,/tmp/vm.ttyb",
"zlog_mode": "g--",
"zlog_name": "platform.log",
"nics": [
{
"interface": "net0",
"mac": "90:b8:d0:9a:e1:b6",
"vlan_id": 0,
"nic_tag": "external",
"gateway": "10.0.0.1",
"gateways": [
"10.0.0.1"
],
"netmask": "255.255.240.0",
"ip": "10.0.1.242",
"ips": [
"10.0.1.242/20"
],
"network_uuid": "70bf9b5c-8708-41bf-a1f9-4c0bf89f682f",
"model": "virtio",
"mtu": 1500,
"primary": true
}
],
"uuid": "ace5b252-b717-c2ea-f37c-bccebdf53bf3",
"zone_state": "running",
"zonepath": "/zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3",
"hvm": true,
"zoneid": 52,
"zonedid": 259,
"last_modified": "2019-01-27T22:45:57.000Z",
"firewall_enabled": false,
"server_uuid": "080020ff-ffff-ffff-ffff-002128ff8e3e",
"datacenter_name": "hq",
"platform_buildstamp": "20190103T010943Z",
"state": "running",
"boot_timestamp": "2019-01-27T09:32:28.000Z",
"init_restarts": 1,
"pid": 10130,
"customer_metadata": {
"root_authorized_keys": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDlPsLGYLM8Sf/CqZbuUxzHLaIKTrWuKZp7htlBW5q14rnToBUme2uY3Qig8AWX9CkbtoYjNrNR13H2/xMrmtfoz+HjLGczmKpOk97YdsB/ZwIG7VVeBEd7L9zQn56vTFs/lmkJN5KUFRBMGhWbUZIKdDnYdpMNSwrVavpp2z372tJPKvriIE5iaaXou03Glaa14dIrqt/w3dBY1NRZGq5uzMhH7Uzd2ceTsqqX2Pg7dIUZjxNVI68esw5WylAtyIzK2XuQkAAhgtgXHmqI1MQSdSkhahLSXCPrNzwPLzzbg7oCTiaaOnv8d44aX/S0Sd7pZ05vIy4fvPm2+mvAtsHp [email protected]"
},
"internal_metadata": {},
"routes": {},
"tags": {},
"quota": 10,
"zfs_root_recsize": 131072,
"zfs_filesystem": "zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3",
"zpool": "zones",
"snapshots": []
}
# zfs get on disk0
NAME PROPERTY VALUE SOURCE
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 type volume -
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 creation Sun Jan 27 9:29 2019 -
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 used 82.5G -
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 available 80.1G -
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 referenced 9.95G -
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 compressratio 1.00x -
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 origin zones/00000000-0000-0000-0000-000000000000@final -
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 reservation none default
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 volsize 80G local
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 volblocksize 8K default
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 checksum on default
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 compression off default
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 readonly off default
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 createtxg 180375 -
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 copies 1 default
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 refreservation 82.5G local
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 guid 13599879925810161421 -
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 primarycache all default
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 secondarycache all default
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 usedbysnapshots 0 -
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 usedbydataset 2.43G -
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 usedbychildren 0 -
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 usedbyrefreservation 80.1G -
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 logbias latency default
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 dedup off default
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 mlslabel none default
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 sync standard default
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 refcompressratio 1.00x -
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 written 2.43G -
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 logicalused 2.42G -
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 logicalreferenced 9.90G -
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 snapshot_limit none default
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 snapshot_count none default
zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0 redundant_metadata all default
# pargs of the bhyve process:
[root@headnode (hq) ~]# pargs 10130
10130: bhyve -H -U ace5b252-b717-c2ea-f37c-bccebdf53bf3 -B 1,manufacturer=Joyent,produ
argv[0]: bhyve
argv[1]: -H
argv[2]: -U
argv[3]: ace5b252-b717-c2ea-f37c-bccebdf53bf3
argv[4]: -B
argv[5]: 1,manufacturer=Joyent,product=SmartDC HVM,version=7.20190103T010943Z,serial=ace5b252-b717-c2ea-f37c-bccebdf53bf3,sku=001,family=Virtual Machine
argv[6]: -s
argv[7]: 31,lpc
argv[8]: -l
argv[9]: bootrom,/usr/share/bhyve/uefi-rom.bin
argv[10]: -l
argv[11]: com1,/dev/zconsole
argv[12]: -l
argv[13]: com2,socket,/tmp/vm.ttyb
argv[14]: -s
argv[15]: 0,hostbridge,model=i440fx
argv[16]: -c
argv[17]: 4
argv[18]: -m
argv[19]: 8192
argv[20]: -s
argv[21]: 0:4:0,virtio-blk,/dev/zvol/rdsk/zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk0
argv[22]: -s
argv[23]: 0:4:1,virtio-blk,/dev/zvol/rdsk/zones/ace5b252-b717-c2ea-f37c-bccebdf53bf3/disk1
argv[24]: -s
argv[25]: 6:0,virtio-net-viona,net0
argv[26]: -s
argv[27]: 30:0,fbuf,vga=off,unix=/tmp/vm.vnc
argv[28]: -s
argv[29]: 30:1,xhci,tablet
argv[30]: SYSbhyve-259
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment