Compare commits
2 Commits
18d35b9224
...
v0.41
Author | SHA1 | Date | |
---|---|---|---|
4cc1c476aa | |||
ce79783540 |
@ -22,13 +22,9 @@ gocage create jail1 -r 13.2-RELEASE
|
|||||||
gocage set Config.Ip4_addr="vnet0|192.168.1.91/24" Config.Vnet=1 jail1
|
gocage set Config.Ip4_addr="vnet0|192.168.1.91/24" Config.Vnet=1 jail1
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
Create basejail (jail based on a template, system will be nullfs read-only mounted from the template):
|
Create basejail (jail based on a release, system will be nullfs read-only mounted from the release directory):
|
||||||
<pre><code>
|
<pre><code>
|
||||||
# First create basetpl from 13.2-RELEASE, set it as a template
|
gocage create -b -r 14.0-RELEASE basejail1
|
||||||
gocage create -r 13.2-RELEASE basetpl
|
|
||||||
gocage set Config.Jailtype="template" basetpl
|
|
||||||
# Then create basejail1 based on basetpl
|
|
||||||
gocage create -b basetpl basejail1
|
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
gVersion = "0.40"
|
gVersion = "0.41"
|
||||||
|
|
||||||
// TODO : Get from $jail_zpool/defaults.json
|
// TODO : Get from $jail_zpool/defaults.json
|
||||||
MIN_DYN_DEVFS_RULESET = 1000
|
MIN_DYN_DEVFS_RULESET = 1000
|
||||||
|
@ -870,7 +870,7 @@ func setupVnetInterfaceHostSide(jail *Jail) ([]string, error) {
|
|||||||
// Get bridge MTU
|
// Get bridge MTU
|
||||||
mtu, err := gJailHost.GetBridgeMTU(bridge)
|
mtu, err := gJailHost.GetBridgeMTU(bridge)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return []string{}, fmt.Errorf("Error getting bridge mtu: %v\n", err)
|
return []string{}, fmt.Errorf("Error getting bridge \"%s\" mtu: %v\n", bridge, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create epair interface
|
// Create epair interface
|
||||||
@ -976,7 +976,7 @@ func setupVnetInterfaceJailSide(jail *Jail, hostepairs []string) error {
|
|||||||
// Get bridge MTU
|
// Get bridge MTU
|
||||||
mtu, err := gJailHost.GetBridgeMTU(bridge)
|
mtu, err := gJailHost.GetBridgeMTU(bridge)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("Error getting bridge %s mtu: %v\n", bridge, err)
|
return fmt.Errorf("Error getting bridge \"%s\" mtu: %v\n", bridge, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd = fmt.Sprintf("/usr/sbin/jexec %d ifconfig %s mtu %d", jail.JID, jsepair, mtu)
|
cmd = fmt.Sprintf("/usr/sbin/jexec %d ifconfig %s mtu %d", jail.JID, jsepair, mtu)
|
||||||
|
Reference in New Issue
Block a user