Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
bd7be70d
Commit
bd7be70d
authored
Jan 13, 2013
by
Srikanth Raju
Committed by
Leigh B Stoller
Jul 23, 2013
Browse files
Increased swap space to handle imageunzipping larger images
parent
1a5a4888
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/linux/xen/restorevm.pl
View file @
bd7be70d
...
...
@@ -202,6 +202,22 @@ foreach my $spec (split(',', $xminfo{'disksizes'})) {
}
print
Dumper
(
\
%disksize
);
# Increase swap space
if
(
!
-
e
"
/capture/bigswap
"){
if
(
system
("
dd if=/dev/zero of=/capture/bigswap bs=1M count=15360
")){
warn
("
Could not dd bigswap
");
}
}
if
(
system
("
chmod 600 /capture/bigswap
")){
warn
("
Could not chmod bigswap
");
}
if
(
system
("
mkswap /capture/bigswap
")){
warn
("
Could not mkswap bigswap
");
}
if
(
system
("
swapon /capture/bigswap
")){
warn
("
Could not swapon bigswap
");
}
foreach
my
$physinfo
(
keys
(
%diskinfo
))
{
my
$spec
=
$diskinfo
{
$physinfo
};
my
$dev
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment