Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OS-7458 bhyve should allow pci_slot addressing for NICs #940

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jasonbking
Copy link
Contributor

No description provided.

@@ -1745,6 +1745,35 @@ tab-complete UUIDs rather than having to type them out for every command.
create: yes
update yes (requires zone stop/boot)

nics.*.pci_slot:

Specifies the virtual PCI slot that this NIC will occupy. Bhyve places
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also have a partial branch for this that I never got to work due to VM.js being rather confusing around nics...

Perhaps move the generic explenation of the bus/dev/function, we repeat it nearly verbatem for all *.pci_slot property and just keep the default device number used?

The man page is already pretyt long and just repeating nearly the same text a few times makes editing/reading it harder.

src/vm/node_modules/VM.js Outdated Show resolved Hide resolved
@@ -6342,6 +6342,11 @@ function buildNicZonecfg(vmobj, payload, log)
+ nic.allowed_dhcp_cids.join(',') + '")\n';
}

if (nic.hasOwnProperty('pci_slot')) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How are we accountin for the primary property? Should that nic not be kept in the first slot as it currently is?

If i remember the boot.c for bhyve currently the primary nic is always slot 0. (I have not seen your boot.c changes as I can't find the PR for that atm?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should still work the same way as today -- we aren't requiring pci_slot for NICs, so if omitted, the NIC goes in the next available function in bus 0, slot 6

@sjorge
Copy link
Contributor

sjorge commented Jul 16, 2020

Bump, someone on the mailing list was looking at this to get more than 6 nics.

@liv3010m
Copy link

Hi guys, any chance this gets merged? :)

@liv3010m
Copy link

can we merge this four years later? :)

@danmcd
Copy link
Contributor

danmcd commented Oct 17, 2024

can we merge this four years later? :)

I see no testing notes in the ticket. I don't have the cycles to test this right now... if someone here does, would LOVE to see the results.

(EDIT: addition) Also wondering how it will interact with VMAPI on Triton. Looks like at worst the enhancement will need extra help to be exploited by Triton CNs.

@jasonbking
Copy link
Contributor Author

Unfortunately, I can't recall what testing I did originally. I suspect I likely did basic sanity testing, but was waiting for approvals (that never came) before spending the time to do more formal testing (and run the test suites, etc), and it just got dropped in lieu of other things...

@danmcd
Copy link
Contributor

danmcd commented Oct 18, 2024

A couple of things.

1.) Don't forget about TritonDataCenter/illumos-joyent#309 that goes along with this.

2.) Please remember how it may/might/will interact with VMAPI on Triton. Looks like, at worst, the enhancement may/might/will need extra help to be exploited by Triton CNs.

3.) For the adventurous and those who wish to contribute test results, I've placed ISO, USB, PI, and test-tars with this change and the illumos-joyent change on top of release-20241017 here: https://kebe.com/~danmcd/webrevs/OS-7458/

@liv3010m
Copy link

Many thanks Dan, Jason.

Here are some results with Dan's test platform-20241018T181254Z image.

Test: Create a HVH with 8 autoassigned PCI slot VNICs. After creaton, use vmadm update to add a additional VNIC with pci_slot property as one of the parameters.
Result: Starting the HVM shows the VNIC is still being added to device 6 ("0:6:8" this time), rasing a "Invalid PCI slot info field" error.

$ cat ./bhyve-test-9vnic.json | json nics
[
  {
    "interface": "net0",
    "vlan_id": 1000,
    "nic_tag": "trunk",
    "model": "virtio",
    "ip": "dhcp"
  },
  {
    "interface": "net1",
    "vlan_id": 1001,
    "nic_tag": "trunk",
    "model": "virtio",
    "ip": "dhcp"
  },
  {
    "interface": "net2",
    "vlan_id": 1002,
    "nic_tag": "trunk",
    "model": "virtio",
    "ip": "dhcp"
  },
  {
    "interface": "net3",
    "vlan_id": 1003,
    "nic_tag": "trunk",
    "model": "virtio",
    "ip": "dhcp"
  },
  {
    "interface": "net4",
    "vlan_id": 1004,
    "nic_tag": "trunk",
    "model": "virtio",
    "ip": "dhcp"
  },
  {
    "interface": "net5",
    "vlan_id": 1005,
    "nic_tag": "trunk",
    "model": "virtio",
    "ip": "dhcp"
  },
  {
    "interface": "net6",
    "vlan_id": 1006,
    "nic_tag": "trunk",
    "model": "virtio",
    "ip": "dhcp"
  },
  {
    "interface": "net7",
    "vlan_id": 1007,
    "nic_tag": "trunk",
    "model": "virtio",
    "ip": "dhcp"
  }
]

$ vmadm create -f bhyve-test-9vnic.json
Successfully created VM c99e9ea5-f320-46d2-969f-61736039cff0
$ zonecfg -z c99e9ea5-f320-46d2-969f-61736039cff0 info | grep -A8 net: | tail -n20
--
net:
	address not specified
	allowed-address not specified
	defrouter not specified
	global-nic: trunk
	mac-addr: 32:ad:28:9c:ed:e5
	physical: net6
	vlan-id: 1006
	property: (name=ip,value="dhcp")
--
net:
	address not specified
	allowed-address not specified
	defrouter not specified
	global-nic: trunk
	mac-addr: b2:e3:1c:84:1c:da
	physical: net7
	vlan-id: 1007
	property: (name=ip,value="dhcp")
$ echo '{"add_nics": [{"vlan_id": 1008, "nic_tag": "trunk", "model": "virtio", "pci_slot": "0:10:0"}]}' | vmadm update c99e9ea5-f320-46d2-969f-61736039cff0
Successfully updated VM c99e9ea5-f320-46d2-969f-61736039cff0
$ zonecfg -z c99e9ea5-f320-46d2-969f-61736039cff0 info | grep -A8 net: | tail -n20
--
net:
	address not specified
	allowed-address not specified
	defrouter not specified
	global-nic: trunk
	mac-addr: b2:e3:1c:84:1c:da
	physical: net7
	vlan-id: 1007
	property: (name=ip,value="dhcp")
--
net:
	address not specified
	allowed-address not specified
	defrouter not specified
	global-nic: trunk
	mac-addr: 62:eb:5c:6c:bc:bd
	physical: net8
	vlan-id: 1008
	property: (name=model,value="virtio")
$ vmadm get c99e9ea5-f320-46d2-969f-61736039cff0 | json nics
[
  {
    "interface": "net0",
    "mac": "42:9a:59:17:49:61",
    "vlan_id": 1000,
    "nic_tag": "trunk",
    "ip": "dhcp",
    "ips": [
      "dhcp"
    ],
    "model": "virtio",
    "primary": true
  },
  {
    "interface": "net1",
    "mac": "d2:3b:9c:92:b7:dd",
    "vlan_id": 1001,
    "nic_tag": "trunk",
    "ip": "dhcp",
    "ips": [
      "dhcp"
    ],
    "model": "virtio"
  },
  {
    "interface": "net2",
    "mac": "f2:f5:02:69:23:47",
    "vlan_id": 1002,
    "nic_tag": "trunk",
    "ip": "dhcp",
    "ips": [
      "dhcp"
    ],
    "model": "virtio"
  },
  {
    "interface": "net3",
    "mac": "22:e3:eb:c4:f3:7e",
    "vlan_id": 1003,
    "nic_tag": "trunk",
    "ip": "dhcp",
    "ips": [
      "dhcp"
    ],
    "model": "virtio"
  },
  {
    "interface": "net4",
    "mac": "e2:c6:6c:09:1e:bc",
    "vlan_id": 1004,
    "nic_tag": "trunk",
    "ip": "dhcp",
    "ips": [
      "dhcp"
    ],
    "model": "virtio"
  },
  {
    "interface": "net5",
    "mac": "12:33:83:f1:62:bb",
    "vlan_id": 1005,
    "nic_tag": "trunk",
    "ip": "dhcp",
    "ips": [
      "dhcp"
    ],
    "model": "virtio"
  },
  {
    "interface": "net6",
    "mac": "32:ad:28:9c:ed:e5",
    "vlan_id": 1006,
    "nic_tag": "trunk",
    "ip": "dhcp",
    "ips": [
      "dhcp"
    ],
    "model": "virtio"
  },
  {
    "interface": "net7",
    "mac": "b2:e3:1c:84:1c:da",
    "vlan_id": 1007,
    "nic_tag": "trunk",
    "ip": "dhcp",
    "ips": [
      "dhcp"
    ],
    "model": "virtio"
  },
  {
    "interface": "net8",
    "mac": "62:eb:5c:6c:bc:bd",
    "vlan_id": 1008,
    "nic_tag": "trunk",
    "model": "virtio"
  }
]
$ vmadm list | head -n1 ; vmadm list | grep c99e9ea5-f320-46d2-969f-61736039cff0
UUID                                  TYPE  RAM      STATE             ALIAS
c99e9ea5-f320-46d2-969f-61736039cff0  BHYV  2048     stopped           bhyve-test-9vnic

$ vmadm start c99e9ea5-f320-46d2-969f-61736039cff0
Successfully started VM c99e9ea5-f320-46d2-969f-61736039cff0

$ vmadm list | head -n1 ; vmadm list | grep c99e9ea5-f320-46d2-969f-61736039cff0
UUID                                  TYPE  RAM      STATE             ALIAS
c99e9ea5-f320-46d2-969f-61736039cff0  BHYV  2048     stopped           bhyve-test-9vnic
$ grep -A4 "bhyve -H -U" /zones/c99e9ea5-f320-46d2-969f-61736039cff0/logs/platform.log | tail -n5
{ "time": "2024-10-19T18:27:40.479098000Z", "v": 0, "hostname": "smartos", "name": "zoneadmd","pid": 54594, "level": 30, "msg":"\tbhyve_args = bhyve -H -U c99e9ea5-f320-46d2-969f-61736039cff0 -B 1,manufacturer=Joyent,product=SmartDC HVM,version=7.20241018T181254Z,serial=c99e9ea5-f320-46d2-969f-61736039cff0,sku=001,family=Virtual Machine -s 31,lpc -l bootrom,/usr/share/bhyve/uefi-rom.bin -l com1,/dev/zconsole -l com2,socket,/tmp/vm.ttyb -s 0,hostbridge,model=i440fx -c 2 -m 2048 -s 0:4:0,virtio-blk,/dev/zvol/rdsk/zones/c99e9ea5-f320-46d2-969f-61736039cff0/disk0 -s 0:6:0,virtio-net-viona,net0 -s 0:6:1,virtio-net-viona,net1 -s 0:6:2,virtio-net-viona,net2", "stream":"stdout" }
{ "time": "2024-10-19T18:27:40.479283000Z", "v": 0, "hostname": "smartos", "name": "zoneadmd","pid": 54594, "level": 30, "msg":" -s 0:6:3,virtio-net-viona,net3 -s 0:6:4,virtio-net-viona,net4 -s 0:6:5,virtio-net-viona,net5 -s 0:6:6,virtio-net-viona,net6 -s 0:6:7,virtio-net-viona,net7 -s 0:6:8,virtio-net-viona,net8 -w SYSbhyve-215\n", "stream":"stdout" }
{ "time": "2024-10-19T18:27:40.485745000Z", "v": 0, "hostname": "smartos", "name": "zoneadmd","pid": 54594, "level": 30, "msg":"Invalid PCI slot info field \"0:6:8,virtio-net-viona,net8\"\n", "stream":"stderr" }
{ "time": "2024-10-19T18:27:40.527051000Z", "v": 0, "hostname": "smartos", "name": "zoneadmd","pid": 54594, "level": 30, "msg":"prctl: c99e9ea5-f320-46d2-969f-61736039cff0: No controllable process found in task, project, or zone.\n", "stream":"zoneadmd" }
{ "time": "2024-10-19T18:27:41.622109000Z", "v": 0, "hostname": "smartos", "name": "zoneadmd","pid": 54594, "level": 30, "stream":"logfile", "msg":"close" }

Test: Remove the extra added VNIC to see if HVM is still able to start.
Result: HVM starts after going back to the original maximum 8 VNICs.

$ echo '{"remove_nics": ["62:eb:5c:6c:bc:bd"]}' | vmadm update c99e9ea5-f320-46d2-969f-61736039cff0
Successfully updated VM c99e9ea5-f320-46d2-969f-61736039cff0

$ vmadm get c99e9ea5-f320-46d2-969f-61736039cff0 | json nics | grep -B1 -A15 net7
  {
    "interface": "net7",
    "mac": "b2:e3:1c:84:1c:da",
    "vlan_id": 1007,
    "nic_tag": "trunk",
    "ip": "dhcp",
    "ips": [
      "dhcp"
    ],
    "model": "virtio"
  }
]
$ vmadm start c99e9ea5-f320-46d2-969f-61736039cff0
Successfully started VM c99e9ea5-f320-46d2-969f-61736039cff0

$ vmadm list | head -n1 ; vmadm list | grep c99e9ea5-f320-46d2-969f-61736039cff0
UUID                                  TYPE  RAM      STATE             ALIAS
c99e9ea5-f320-46d2-969f-61736039cff0  BHYV  2048     running           bhyve-test-9vnic

$ grep -A4 "bhyve -H -U" /zones/c99e9ea5-f320-46d2-969f-61736039cff0/logs/platform.log | tail -n5
{ "time": "2024-10-19T18:51:08.412440000Z", "v": 0, "hostname": "smartos", "name": "zoneadmd","pid": 56684, "level": 30, "msg":"\tbhyve_args = bhyve -H -U c99e9ea5-f320-46d2-969f-61736039cff0 -B 1,manufacturer=Joyent,product=SmartDC HVM,version=7.20241018T181254Z,serial=c99e9ea5-f320-46d2-969f-61736039cff0,sku=001,family=Virtual Machine -s 31,lpc -l bootrom,/usr/share/bhyve/uefi-rom.bin -l com1,/dev/zconsole -l com2,socket,/tmp/vm.ttyb -s 0,hostbridge,model=i440fx -c 2 -m 2048 -s 0:4:0,virtio-blk,/dev/zvol/rdsk/zones/c99e9ea5-f320-46d2-969f-61736039cff0/disk0 -s 0:6:0,virtio-net-viona,net0 -s 0:6:1,virtio-net-viona,net1 -s 0:6:2,virtio-net-viona,net2 -s 0:6:3,virtio-net-viona,net3 -s 0:6:4,virtio-net-viona,net4 -s 0:6:5,virtio-net-viona,net5 -s 0:6:6,virtio-net-viona,net6 -s 0:6:7,virtio-net-viona,net7 -w SYSbhyve-215\n", "stream":"zoneadmd" }
{ "time": "2024-10-19T18:51:08.441564000Z", "v": 0, "hostname": "smartos", "name": "zoneadmd","pid": 56684, "level": 30, "msg":"Configuration from /var/run/bhyve/zhyve.cmd:\nnvlist version: 0\n", "stream":"stdout" }
{ "time": "2024-10-19T18:51:08.441837000Z", "v": 0, "hostname": "smartos", "name": "zoneadmd","pid": 56684, "level": 30, "msg":"\tbhyve_args = bhyve -H -U c99e9ea5-f320-46d2-969f-61736039cff0 -B 1,manufacturer=Joyent,product=SmartDC HVM,version=7.20241018T181254Z,serial=c99e9ea5-f320-46d2-969f-61736039cff0,sku=001,family=Virtual Machine -s 31,lpc -l bootrom,/usr/share/bhyve/uefi-rom.bin -l com1,/dev/zconsole -l com2,socket,/tmp/vm.ttyb -s 0,hostbridge,model=i440fx -c 2 -m 2048 -s 0:4:0,virtio-blk,/dev/zvol/rdsk/zones/c99e9ea5-f320-46d2-969f-61736039cff0/disk0 -s 0:6:0,virtio-net-viona,net0 -s 0:6:1,virtio-net-viona,net1 -s 0:6:2,virtio-net-viona,net2 -s", "stream":"stdout" }
{ "time": "2024-10-19T18:51:08.441938000Z", "v": 0, "hostname": "smartos", "name": "zoneadmd","pid": 56684, "level": 30, "msg":" 0:6:3,virtio-net-viona,net3 -s 0:6:4,virtio-net-viona,net4 -s 0:6:5,virtio-net-viona,net5 -s 0:6:6,virtio-net-viona,net6 -s 0:6:7,virtio-net-viona,net7 -w SYSbhyve-215\n", "stream":"stdout" }
$ ps -ef | grep c99e9ea5-f320-46d2-969f-61736039cff0
    root 57093 56687   6 18:51:08 ?           4:27 bhyve -H -U c99e9ea5-f320-46d2-969f-61736039cff0 -B 1,manufacturer=Joyent,product=SmartDC HVM,version=7.20241018T181254Z,serial=c99e9ea5-f320-46d2-969f-61736039cff0,sku=001,family=Virtual Machine -s 31,lpc -l bootrom,/usr/share/bhyve/uefi-rom.bin -l com1,/dev/zconsole -l com2,socket,/tmp/vm.ttyb -s 0,hostbridge,model=i440fx -c 2 -m 2048 -s 0:4:0,virtio-blk,/dev/zvol/rdsk/zones/c99e9ea5-f320-46d2-969f-61736039cff0/disk0 -s 0:6:0,virtio-net-viona,net0 -s 0:6:1,virtio-net-viona,net1 -s 0:6:2,virtio-net-viona,net2 -s 0:6:3,virtio-net-viona,net3 -s 0:6:4,virtio-net-viona,net4 -s 0:6:5,virtio-net-viona,net5 -s 0:6:6,virtio-net-viona,net6 -s 0:6:7,virtio-net-viona,net7 -w SYSbhyve-215
    root 56684     1   0 18:51:07 ?           0:00 zoneadmd -z c99e9ea5-f320-46d2-969f-61736039cff0
    root 57372 27673   0 18:55:36 pts/3       0:00 grep c99e9ea5-f320-46d2-969f-61736039cff0

@liv3010m
Copy link

Test: Create a HVH with 8 manually assigned PCI slot VNICs using the new pci_slot property on a json payload for vmadm create. Check PCI slot assignment uppon starting the HVM.
Result: Started HVM shows VNICs on default device 6 (0:6:<number>) and not the specified one on the json payload.

$ cat bhyve-test-8vnic-w-pcislot | json nics
[
  {
    "interface": "net0",
    "vlan_id": 1000,
    "nic_tag": "trunk",
    "model": "virtio",
    "ip": "dhcp",
    "pci_slot": "0:8:0"
  },
  {
    "interface": "net1",
    "vlan_id": 1001,
    "nic_tag": "trunk",
    "model": "virtio",
    "ip": "dhcp",
    "pci_slot": "0:8:1"
  },
  {
    "interface": "net2",
    "vlan_id": 1002,
    "nic_tag": "trunk",
    "model": "virtio",
    "ip": "dhcp",
    "pci_slot": "0:8:2"
  },
  {
    "interface": "net3",
    "vlan_id": 1001,
    "nic_tag": "trunk",
    "model": "virtio",
    "ip": "dhcp",
    "pci_slot": "0:8:3"
  },
  {
    "interface": "net4",
    "vlan_id": 1004,
    "nic_tag": "trunk",
    "model": "virtio",
    "ip": "dhcp",
    "pci_slot": "0:8:4"
  },
  {
    "interface": "net5",
    "vlan_id": 1005,
    "nic_tag": "trunk",
    "model": "virtio",
    "ip": "dhcp",
    "pci_slot": "0:8:5"
  },
  {
    "interface": "net6",
    "vlan_id": 1006,
    "nic_tag": "trunk",
    "model": "virtio",
    "ip": "dhcp",
    "pci_slot": "0:8:6"
  },
  {
    "interface": "net7",
    "vlan_id": 1007,
    "nic_tag": "trunk",
    "model": "virtio",
    "ip": "dhcp",
    "pci_slot": "0:8:7"
  }
]

$ vmadm create -f bhyve-test-8vnic-w-pcislot
Successfully created VM df70b3af-ee87-417a-90bb-68ea6e6b455a
$ zonecfg -z df70b3af-ee87-417a-90bb-68ea6e6b455a info | grep -A8 net: | tail -n20
--
net:
	address not specified
	allowed-address not specified
	defrouter not specified
	global-nic: trunk
	mac-addr: 92:fa:92:e0:a2:b9
	physical: net6
	vlan-id: 1006
	property: (name=ip,value="dhcp")
--
net:
	address not specified
	allowed-address not specified
	defrouter not specified
	global-nic: trunk
	mac-addr: a2:79:5c:3d:9b:69
	physical: net7
	vlan-id: 1007
	property: (name=ip,value="dhcp")
$ vmadm start df70b3af-ee87-417a-90bb-68ea6e6b455a
Successfully started VM df70b3af-ee87-417a-90bb-68ea6e6b455a

$ vmadm list | head -n1 ; vmadm list | grep df70b3af-ee87-417a-90bb-68ea6e6b455a
UUID                                  TYPE  RAM      STATE             ALIAS
df70b3af-ee87-417a-90bb-68ea6e6b455a  BHYV  2048     running           bhyve-test-8vnic-w-pcislot
$ vmadm get df70b3af-ee87-417a-90bb-68ea6e6b455a | json nics
[
  {
    "interface": "net0",
    "mac": "f2:d3:26:27:c3:50",
    "vlan_id": 1000,
    "nic_tag": "trunk",
    "ip": "dhcp",
    "ips": [
      "dhcp"
    ],
    "model": "virtio",
    "primary": true
  },
  {
    "interface": "net1",
    "mac": "e2:fc:cf:03:8d:eb",
    "vlan_id": 1001,
    "nic_tag": "trunk",
    "ip": "dhcp",
    "ips": [
      "dhcp"
    ],
    "model": "virtio"
  },
  {
    "interface": "net2",
    "mac": "e2:03:8a:c4:ea:5d",
    "vlan_id": 1002,
    "nic_tag": "trunk",
    "ip": "dhcp",
    "ips": [
      "dhcp"
    ],
    "model": "virtio"
  },
  {
    "interface": "net3",
    "mac": "b2:fd:75:66:0b:71",
    "vlan_id": 1001,
    "nic_tag": "trunk",
    "ip": "dhcp",
    "ips": [
      "dhcp"
    ],
    "model": "virtio"
  },
  {
    "interface": "net4",
    "mac": "72:7a:34:27:b3:9e",
    "vlan_id": 1004,
    "nic_tag": "trunk",
    "ip": "dhcp",
    "ips": [
      "dhcp"
    ],
    "model": "virtio"
  },
  {
    "interface": "net5",
    "mac": "22:1f:62:10:23:18",
    "vlan_id": 1005,
    "nic_tag": "trunk",
    "ip": "dhcp",
    "ips": [
      "dhcp"
    ],
    "model": "virtio"
  },
  {
    "interface": "net6",
    "mac": "92:fa:92:e0:a2:b9",
    "vlan_id": 1006,
    "nic_tag": "trunk",
    "ip": "dhcp",
    "ips": [
      "dhcp"
    ],
    "model": "virtio"
  },
  {
    "interface": "net7",
    "mac": "a2:79:5c:3d:9b:69",
    "vlan_id": 1007,
    "nic_tag": "trunk",
    "ip": "dhcp",
    "ips": [
      "dhcp"
    ],
    "model": "virtio"
  }
]
$ grep -A4 "bhyve -H -U" /zones/df70b3af-ee87-417a-90bb-68ea6e6b455a/logs/platform.log | tail -n5
{ "time": "2024-10-19T19:31:26.822248000Z", "v": 0, "hostname": "smartos", "name": "zoneadmd","pid": 60158, "level": 30, "msg":"\tbhyve_args = bhyve -H -U df70b3af-ee87-417a-90bb-68ea6e6b455a -B 1,manufacturer=Joyent,product=SmartDC HVM,version=7.20241018T181254Z,serial=df70b3af-ee87-417a-90bb-68ea6e6b455a,sku=001,family=Virtual Machine -s 31,lpc -l bootrom,/usr/share/bhyve/uefi-rom.bin -l com1,/dev/zconsole -l com2,socket,/tmp/vm.ttyb -s 0,hostbridge,model=i440fx -c 2 -m 2048 -s 0:4:0,virtio-blk,/dev/zvol/rdsk/zones/df70b3af-ee87-417a-90bb-68ea6e6b455a/disk0 -s 0:6:0,virtio-net-viona,net0 -s 0:6:1,virtio-net-viona,net1 -s 0:6:2,virtio-net-viona,net2 -s 0:6:3,virtio-net-viona,net3 -s 0:6:4,virtio-net-viona,net4 -s 0:6:5,virtio-net-viona,net5 -s 0:6:6,virtio-net-viona,net6 -s 0:6:7,virtio-net-viona,net7 -w SYSbhyve-216\n", "stream":"zoneadmd" }
{ "time": "2024-10-19T19:31:26.853444000Z", "v": 0, "hostname": "smartos", "name": "zoneadmd","pid": 60158, "level": 30, "msg":"Configuration from /var/run/bhyve/zhyve.cmd:\n", "stream":"stdout" }
{ "time": "2024-10-19T19:31:26.853713000Z", "v": 0, "hostname": "smartos", "name": "zoneadmd","pid": 60158, "level": 30, "msg":"nvlist version: 0\n\tbhyve_args = bhyve -H -U df70b3af-ee87-417a-90bb-68ea6e6b455a -B 1,manufacturer=Joyent,product=SmartDC HVM,version=7.20241018T181254Z,serial=df70b3af-ee87-417a-90bb-68ea6e6b455a,sku=001,family=Virtual Machine -s 31,lpc -l bootrom,/usr/share/bhyve/uefi-rom.bin -l com1,/dev/zconsole -l com2,socket,/tmp/vm.ttyb -s 0,hostbridge,model=i440fx -c 2 -m 2048 -s 0:4:0,virtio-blk,/dev/zvol/rdsk/zones/df70b3af-ee87-417a-90bb-68ea6e6b455a/disk0 -s 0:6:0,virtio-net-viona,net0 -s 0:6:1,virtio-net-viona,net1 -s ", "stream":"stdout" }
{ "time": "2024-10-19T19:31:26.853821000Z", "v": 0, "hostname": "smartos", "name": "zoneadmd","pid": 60158, "level": 30, "msg":"0:6:2,virtio-net-viona,net2 -s 0:6:3,virtio-net-viona,net3 -s 0:6:4,virtio-net-viona,net4 -s 0:6:5,virtio-net-viona,net5 -s 0:6:6,virtio-net-viona,net6 -s 0:6:7,virtio-net-viona,net7 -w SYSbhyve-216\n", "stream":"stdout" }
$ ps -ef | grep df70b3af-ee87-417a-90bb-68ea6e6b455a
    root 60158     1   0 19:31:26 ?           0:00 zoneadmd -z df70b3af-ee87-417a-90bb-68ea6e6b455a
    root 60564 60163   0 19:31:27 ?           8:10 bhyve -H -U df70b3af-ee87-417a-90bb-68ea6e6b455a -B 1,manufacturer=Joyent,product=SmartDC HVM,version=7.20241018T181254Z,serial=df70b3af-ee87-417a-90bb-68ea6e6b455a,sku=001,family=Virtual Machine -s 31,lpc -l bootrom,/usr/share/bhyve/uefi-rom.bin -l com1,/dev/zconsole -l com2,socket,/tmp/vm.ttyb -s 0,hostbridge,model=i440fx -c 2 -m 2048 -s 0:4:0,virtio-blk,/dev/zvol/rdsk/zones/df70b3af-ee87-417a-90bb-68ea6e6b455a/disk0 -s 0:6:0,virtio-net-viona,net0 -s 0:6:1,virtio-net-viona,net1 -s 0:6:2,virtio-net-viona,net2 -s 0:6:3,virtio-net-viona,net3 -s 0:6:4,virtio-net-viona,net4 -s 0:6:5,virtio-net-viona,net5 -s 0:6:6,virtio-net-viona,net6 -s 0:6:7,virtio-net-viona,net7 -w SYSbhyve-216
    root 61303 27673   0 19:42:36 pts/3       0:00 grep df70b3af-ee87-417a-90bb-68ea6e6b455a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants