View by:

Return of the Matt: Physical to Virtual and Apache Tomcat

Tuesday, July 21st, 2009 – running time 32:39
Matt Lestock returns and brings us the skinny on converting physical servers into virtual servers and piping 'em right into your ESXi box while Darren takes the scenic route on a Linux Apache Tomcat install with some Java and bash lovin'.

Segments

Matt Lestock uses VMware Converter to take that ugly power hungry idle beast and turn it into a sleek and slim virtual machine, piped stright into your ESXi host.

Send your questions and feedback to matt@hak5.org

Darren Kitchen is cooking up a Linux based Java servlet container and HTTP web server with Apache Tomcat. While never distributions and package repositories can make setting up a Tomcat server a breeze, it's nice to have an understanding of the manual process.

Don't forget about our first ever official Hak5 Meetup at Busch Gardens Williamsburg on August 15th. Find all the details at hak5meetup.squarespace.com or RSVP on Facebook.

Matt's Back!

Matt's back and tells a little bit about his trip up North

00:00

Play

Physical to Virtual

Matt shows how to convert a physical server to a virtual server

06:12

Play

White Box Server Contest

Darren announces the winner of the White Box Server contest!

13:21

Play

L.A.M.P.

Darren talks Linux Apache (Tomcat) MYSQL PHP.

15:58

Play

The dangers of Tomcat

Tomcat isn't the best of the Apache products, so here are some warnings

25:03

Play

Announcements

Announcements on the store and more!

28:33

Play

Highlights
squarespace ( 0:28, 5:19, 5:41 ) open source ( 3:46, 16:01, 17:22, 24:05 ) ac dc ( 20:52 ) sata ( 15:17 )

Automatically Generated Transcript(may not be 100% accurate) ( more )

" War."

" This episode of -- has brought to you by godaddy Squarespace. -- flag and viewers like you. Everybody welcome this week's episode Hak5 I met last night I'm Derek it's -- And that's why we're here to bring -- your weekly dose of technolust. I would hear exactly. A little thing we've you know kind patented style from somewhere else but -- that's how we roll. -- but anyway it in the form we're not keeping track now. Gonna be back. It's you know been awhile and you know in -- months since I've been inside via the -- is that it's. You you're -- for two episodes. Reach in. Internet land means like -- I understand that stale. You know yeah so they've written -- yet we kept user account forms. Thank you and prompt I was logging in higher seed from home over yet so how it has trip up north. It was good. You know just real quick my. The way. Yet sucks but. You know here -- we use that though sister got here in front of them. Those reliance. So there's there's a -- to yeah I got there Wednesday she got married Thursday and he passed the next Wednesday so you can wait for an accident can but yes and it's every show but it's got to get a bit there yeah well that I've been there. So. To date I had brought."

" You sexy back. It's you and I'm I'm looking forward to dive right in pieces. You bring -- up topic that is near and dear to my heart as I am trying to -- all along are you. Oh I'm pretty far along now I've got I've got quite a few things -- and out. I've used about 40% mighty Iran and disk relic rally eight machine you got. It's really. You're not fully migrated yet. Oh no and I'm not fully migrated and I'm making sure that liked how I had before was I had that you reservist to work with right. So -- and everything you like triple. You know. Lots of different things I mean I might as well made by you know secondary -- excellence and easier on me oh yeah I was tortured and -- you're not through the -- advance on segmenting it all out making it the way that it's supposed to be. -- I mean. It."

" Well yeah not a whole lot. But some will already talked about today is physical to virtual. I touched on this and did a brief segment for you guys if you're gonna be doing. You know the the whole. Like workstation kind of thing. VMware workstation and and stuff like that. But now we're actually gonna be connecting in taking this machine and dumping it on to. Yes I -- which is nice because we don't have to worry about transitioning files and stuff like adding in adding in -- it doesn't. All automatic."

" And I totally would have done that with my existing infrastructure is not that we're not bore in on -- There's something that I haven't -- and also virtual physical. So it'll -- I just need a little bit more horse power. We're gonna do you we have indeed some obvious -- now now that's not for an audience that's what we talked about. Tom cat here we're back in Apache. Could open source foundation. Stuff and product has. It still exists it turns out and a lot of enterprises is to run software and so it here in a situation where you need to support that kind of stuff. The feeling in town we're gonna talk about the fun scenic way to do it and it's laying the foundation for some stuff and you next episode was happy that open source ness of something that we're gonna start doing is you know. Ceres. And I'd like couples here's. I didn't do enough I don't have that big a I mean like the last trip to elect will well we have to do is do is talk about disk encryption and then we're talking about. The cold do and then talking analyzing memory that I mean. And it all is driven by the did the feedback from the -- and it's all just driven by what we're doing data dates and no I mean it's there's a serious and if you watch. There's arcs. Whatever if that's -- six. I don't want to happen. -- news on your watch snaps and a -- When the first three years -- and said. That does not surprise and watched them all after the third season because this is horrible. -- many instances are -- rambling on and off so let's go ahead and find out how you guys can join us in Williamsburg Virginia."

" At Busch Gardens. We are celebrating our fourth year anniversary. As well as the sixth season of Hak5 by doing our very first meet up. It's on August 15 at Busch Gardens Lansbury and you can buy an army and fell over at Hak5 -- that Squarespace dot com. It's open all -- is obviously -- in part. And there's gonna be fear and hacking and roller coasters. Hair. More -- moral administers. So join us to make sure RS VP we're so excited -- can't wait and I would like to thank our sponsor Squarespace. "

" With Squarespace you can build beautiful looking blogs or web sites in a fraction of the time it would take -- the traditional content management system. They're intuitive drag and drop interface is is snappy and powerful as a desktop publishing app. But best of all there's no software to install new database to configure and apaches -- life and no code to -- it. Sign up for yourself a simple and powerful it can be with a two week free trial that's Squarespace dot com. And you probably could hack. Five to support the show and save 10% off the life of your service -- Squarespace dot com."

" Next up -- is taking. One Indians and turning it into one of the but for export this."

" Sorry guys Ohio and then. Here in the studio. It's good to be back it's. Little warm but you know we can -- with that. I and today I'm bringing ES exciting conversation back after a number of emails and I got me guys. So you have been asked how the -- take a physical servers I already have deployed. And move that over to my use -- box so that I can redeploy. A server somewhere else or use that for -- box. Well it's pretty easy and -- news is VMware. Beast fear converter. Lot of these -- yet we know actually. -- And what we're gonna do is we're gonna downloaded VMware dot com install it. If year don't have a problem you know running it on the machine that make a whole lot of changes you know an assault saw where we actually get done with this that's fine. Well basically what we're gonna do is right take a running machine. And we're going to transition it to be virtual machine. On various -- server. How we're gonna do that so we've already got the servers the service installed. Where to go over here to converse standalone client then this is gonna launch here. What's it's done -- B a hit with a very simplistic interface. Couple buttons at the top. Convert machine configured machine. Things like that so we're going to convert machine. Thank now here is where we get hit with our first options the source type is going to be powered on machine okay now this machine. Is power down we're using it we've installed convert onto it. And we're gonna take an image of this transition over there when I would recommend is you stop sequel instances. Exchange server ftp -- Any service that is -- Critical to the system go and stop it just in case. You know real time transaction laws and things like that tend to have an issue when taking you know over time -- level. You get point. So the next thing we're gonna do is we're going to say this local machine now if you have. Another machine that you need to. Take a look at you can actually point it at -- there. Okay so now we're presented with our next screen which is specify our destination. Our destination is going to be our newly created yes -- server that is happy humming along doing its thing. And with no issues."

" RIP address just happens to be ten that ten that -- Dot 55. Per username is grouped in -- password is Hak5. Now remember two. If you're running multiple host in your hand the spear. You know. Virtual center or whatever they call it now. You would connect to that and then push out from there because we're just running a single host in -- side. We're actually going connect directly to the post is make sure you are your credentials when you set them -- We're gonna click next. In here we can actually now see our. List of servers that are installed on yes -- server. We've got free -- on there are ready and that is the only server that is currently on the yes outside. Host for a select data store one which has more free space this is -- 75 gigabyte total disk source size. And and for virtual machine names going to be Lenovo. -- and that word click next. And here we can actually take a look at all the options at the system presents us with so here we've seen well we don't have customization tools installed. These are really only useful if you guys or going to do -- a large number. -- 20020032008. Servers there's different instructions for installing the sis -- utilities. On the virtual mission are on the guest. Host. Physical server at this point. So that you can actually customize in terms -- machine we don't really need do that like you said we've already shot our stuff down. There's no reconfiguration needed this is gonna handle everything that we need to do. -- were to come back over here and -- conversion power state now believe it off. Puts conversion processing. We can reconfigure the destination virtual machine probably want to do that because you probably wanna sign. Two processors four processors one processor and just the amount of memory because you're in a virtual environment now. You also have the option installed VMware tools on the imported machine. After the conversion is done however I like doing it manually. I don't know why that's just me so we're gonna click next. And here's our review one more time this is what's gonna happen it's gonna preserve -- count we've got three next in the system. Monolithic flat disk going to state store one it's not an installed VMware tools and reconfigure virtual machine Edward click finish. Now once this is actually down processing it's gonna valued at task and is going to send commands over to the yes -- server so here we can see. This local machine the destination is ten at ten debt -- that 55 slash Lenovo and the status he is it's running. So is now taking our virtual arms he's -- our physical machine. And it's taking the images for the physical machine and converting it over. Pushing it in real time over to the successor so we'll have to worry about creating images transferring them and into the inventory this is doing everything that you need to deal. Like to say if you've."

" Really wanted to you can go through the process and -- us on a bunch of different ones and actually run X server client. On your desktop or your laptop at the office and convert a bunch of different machines. One by one horrible you do -- batch whenever play with it it's not really gonna harmony thing if you you know fail on me. Conversion delete the virtual machine off the SX server and try again. That's really how I've learned all of this stuff is just trial -- you you have button -- get up in new hoops. It would again so if you have questions and yet meant it Hak5 dot or. Or at the forms of forums. -- dot Hak5 dot org and to really take a look at trivia and that and after that there hasn't tomcat Laden's. I'm going to tell him why. I don't like on but maybe he has a better reasons I don't know."

" Keep your personal information away from spammers hackers into your crazy ex roommate private domain registration from godaddy.com protects your privacy. But keeping your address phone number and more out of the public database. Check out revision3.com. Slash godaddy for all of our godaddy codes in offers. You --"

" from a couple weeks ago we've been having a contest going on from sept 519 and that is build your own white box server 2000 dollars what can you guys come up with. And we've seen some really creative stuff uniforms so now it's on that map back and we had a chance to go over some other results. And come up with a winner that will be receiving just how much lag bag along with it's. It'll secretly the that a drinking game. And I thought we would -- goes through a couple of these really cool ones leading up to use the winner now. First of all I have to mention. Stead seventy seven's awesome entry he put together eight core system. Right so dual Quad Core with sixteen gigs of ram we real raid. Four terabytes of disk for 1700 dollars using a pimp out. Dell precision for ninety workstations are basically getting -- You know dual processor machine. Thrown out tool or hearing it Clinton's quad cores and hook up the -- disk I thought that was kind of unique way to go about it. And then. Mr. I've been -- a neat solution using both the USX I server. And an -- SCSI target isn't really cheap cases like twenty -- cases just. --"

" And it's in there but it's all on a Gigabit. Land who's actually delegates switch in there and then you know you can you're yes excise are mounting -- the targets lob it sounds really cool. But we've gotta give it up to go down. Don't don't put together and really neat solution using them for you case that's a 24 -- rack mount enclosure. Twelve gigs of ram. And he says up to eleven terabytes of disk with 2000 dollar option and he did want to go for software raid which is the one thing that made Matt and I go. Right because the board itself only has. Eight SATA. Oh we're like dude it's so like you know with the plane Monica's he only got up to up points that you know. Thank are a couple options right -- think it is meant -- freeware and there maybe get -- just five or six drives right. 24. I mean this thing is sick what can I. -- area. This is way crazy case. So I'm totally dig in the creativity there and negative -- and thank you to everybody that -- And -- release at some point we love that. So we will be hooking up. Dude don't think so much for participating in this contest and we're gonna be back next week with the new one. But first. It's time to talk about some crazy cool open source goodness -- stuff write something going to tell you it's about time we talk about lamp on the show right. Now now one of these I'm talkin' about Linux Apache my sql PHP the good stuff right. I mean right. How unsettled -- we do Linux and and Apache tomcat. Talent. Right it's like daddy Apache foundation export and Apache. Oh cool and what projects and this is really when these things I kind of came across because in my day job as assistant men. I I just you know talk about on the show what we're doing data day and it's been on my mind because I've been implemented -- really going -- citizens -- it. There's a lot of crazy stupid crap written in opera and won't talk about the downsides for -- here and we're gonna chat rooms right now. And all that heat for Tom and I understand right. It's really the only game and write it on and it's. Native but it's been like it's been changing hands it was like this one company and then Macromedia and then went. You know a Macromedia and Adobe and then Adobe said -- seven you know that -- for. You know. If you're gonna run tomcat enterprise. You don't have a choice of like open source right and I think that's really really cool. A home and I'm not crazy many guys and I'm not crazy about W doesn't -- like. In -- with PHP and I will learn some other languages here soon but but I thought that we could maybe take the scenic route and set up her own. Our own Linux. Apache tomcat server and and it's -- when these things that applies to many other things when it comes to setting up Linux servers and something that in doing a lot of now with. -- he's sexy so let's go and that now. Are here we are logged into our who bond teaser yes I am gonna go -- just using but -- there because no one I -- the -- and -- Kerry for that matter it's Linux to trying to work right. Back into it basically would go ahead and you get the latest version of Apache tomcat -- once we've got that would mean good on tolerate. Now we're just gonna move -- to a happy place in this case the happy place is going to be user local on it can make things easy for us to go ahead pseudo. And the that. Now that we -- to download a new to it happy place we're just gonna go ahead make sure that we actually have the Java JDK. If we don't bad install it so for that let's just run job Dutch version and we can see we don't have it so it simply."

" On Debian let's go ahead and apt get install sun. -- six."

" And we want to JDK. So get JDK installed -- actually needs an environment variables so happy fun stuff looks -- that that's where -- And only need to do is come down here and insert a little export. Java underscore home equals where it is and it's in for us. In user -- GBM some six Java. Now we just need to come up with a couple startup scripts it's going to told I'm -- how to start restart stop and all that -- pretty easy we have to do is create new file. And we're gonna pseudo -- in ETC. In it. And we're just gonna go ahead and -- its metadata appearance call."

" And there again it's just a matter of defining start stop and restart actually hit the dot SH files. Appropriately and then BS I spent. And the had to say that and then last and always forget to actually give it a little bit execute action so that's modest. Or CH moderate."

" Some type up the windows."

" And you have to -- to route to do that so there you go and that's done array. And since we're gonna want tomcat to actually boot up when the server boots up let's go ahead and at a couple some links there to make that happen so in that case we're gonna. -- That -- just created. -- TT CRC. One dot they are gonna make this K 99 tomcat. And let's do it again but this time. RC two -- DM we're gonna call past nine tomcat. -- And so clean and stay up later. So there ago we have a Tom -- ever running so let's go ahead and see who works and AC DC and it cut the tomcat. And tell -- start. And her it is started so let's actually find out of this is working and for that need to figure it yet Peters here. And we've got -- to know 135. So get out of my virtual box here and let's pull. Chrome if your browser. And head over to attend tan. No 135 on port. EV -- that's where it is. By default merry go we've got our admin accounts got to look kitty and we're ready to get out. Now we do need to actually add a manager interface this that we can actually go into the -- managers are adding more thousand will be talking a lot more about that. In the next part of this segment. But for right now let's go ahead and create that account. So we can lay this finish laying the groundwork so -- were virtual box. It's just a matter of coming over to user. Local Tom cat where we where and you can Syria national. Com folder here so it's gonna carpet as you might imagine -- it's -- palace who would've figured and let's see by. Tomcat users. -- and out. Because if you don't do this you can actually have access to any of the -- the just installed. It's pretty easy to -- user there's XML. That's already in here you could on comments and stuff but we're just gonna go ahead I didn't either with manager role. So for that. And it's gonna come in here within. The tomcat user's. Part of the X amount and I am going to add. And had what it tells me today and click tomcat manager it's gonna say hey law again I can't say no cancel the analog in and it's gonna tell me what to -- And I'm gonna say rate that's exactly what I wanted to do. I -- role manager. -- name. Equals manager. And user username. Equals tomcat. That'll be fine and then password. Make it something stupid. And then we'll give -- the manager role. And that's pretty much it will -- see that file and when we come over to our. From again we should actually be able to log in to our newly installed on cancer. Tomcat and that crappy house for that we just created. Oh did forget to mention that we have to restart service that -- you get idea. Come back over here and just as we've created at startup script that's gonna last start stop and whatnot will just issue again slash at C -- it got these last tomcat. And restart. Hooray for the when it's restarted and we should be able to log end. Back to the kiddie. Content manager. And there we get we are logged into the back end of Apache tomcat and this is where to start selling fun little service that -- goodness. And we're just gonna go ahead and stop here because it's a lot of crazy stuff and let's get -- back in here so that he can ridicule me for. Using Java and open source and it will be fun. And like -- said laying the groundwork next week we're gonna do some fun you open source goodness from here this is of course. So let's take a quick break and will be wrapping this up just --"

" I want to let everybody knows that. Dean Klein is -- service they are the largest online video rentals service and offer choice of over 6000 new and classic titles across all councils and elves which plants are you 15951. Game by members can rent one to four games at a time and keep them for as long. As they like you can also purchase a game you fall in love with it sent to the box and the manual. Pornography. Head on over to gain slide dot com slash Hak5 to get. Two week free trial membership in line dot com slash act. I guess so. Dares. Talking about tomcat and so usefulness of the server itself. However -- do want to let -- know that unless you haven't experienced tomcat -- men much like. Doesn't even need to run dot net applications on Linux. Who need a dedicated mono and if you do not secure your server properly and stay up to date. You will be in for a world of her right they're."

" but tomcat opens or you want to put that behind bunch of layers of defenses in nature patch download it it's just a bad idea yet. That's a huge fan -- yes yes I don't run tomcat."

" Or mono on. Public."

" Facing yet services it's just a really. I mean like that unless you happen -- whose experience with those you know servers. You're you're your first you know so surprise when you get a call from your eyes he -- hate wire there."

" Hundreds of thousands of -- prop up your box you know it's not now another at all and I mean I instantly. Yes I'm not on but I am sure it on your show and -- well. I don't want to be at nine and podcast. It's all in because of the things that we just talked about here. Are pretty much the same whether it's going to be -- on or pearl -- every. And I just -- the principles are Russell -- if you haven't got your feet wet -- and Linux guru but you know. Okay it's your reasons but so you're going so why would you right. Once runs on I -- you wouldn't but if you happen to. And run it on Linux is gonna make it easier. It's going to be a lot less expensive and its. Members. That. Only yet you -- and then. You don't need a public face on it and are now I -- and you can now a bit later it's. So. So again that is that is or disclaimers here we're like yeah all of that and in Leeson who continent -- this and it's got the happy little case when you installed earnest it's -- you want to be Atlantans server or -- tackle box to do. -- That would be on. The Apple I asked props there -- exactly well I'm just to. I do have some feedback some these questions and that is. Disable quick if you're concerned about the cold boot attack because a lot of cases when you actually disable quick actually counts -- him. When you -- like oh my god you're -- music and like sixteen megs of ram ever needs it that's up because it forever right. -- but like four gigs of worries. Me. -- Hip and -- used to do with eight. Do you -- I won't name it oh and yes TPM with bit locker yeah -- kind of problem. So just there. It. Here."

" We need to talk about. The store. Which is finally back up right yes my apologies. -- The -- So. When it -- countermeasures in and that we can track exactly which. Services. Doing what scripted -- who we implemented. New protect scheme and just -- fields or which. So we really appreciate it if -- yes -- so. The source back up and and or -- I'm dot org slash -- update. Workshop or workshop where all there have followed their Twitter all of -- but it's actually right after all it is great. Here -- not we. He didn't think it does well -- legal only if only because Dave Randall sat all on your computer that's exactly. All so we got as -- man is. About snubs and yet. Right."

" I thought you know you. -- it's something that. -- It's a lot about oh I love my favorite shows that area I mean. Fries my favorite band I gotta give props Emmerich co -- Collapse next episode features all sorts of new projects that you definitely don't want this they have critic crash but I found. Split in an effort 360 and that and CR PG platform for the PC try. Check out o'clock every Tuesday at revision3.com. Slash who. Cool. Okay it's -- anyway. Anyway guys next week you definitely want to stick around and see that at this that we are going to be showing I mean an ultimatum US -- Yeah. Well enough funniest guys I think they talk -- you sausage fest here I can get back and it looks. Yeah. Yeah. Telling you you. After technolust."

" Very kitchen doesn't put starts his part where -- is a mixed. He was dead. Well what in the book. Did Matt looks in the -- just loses himself just gazing deeply into. Big here slides. Get -- up. --"

" We got it like right in this. Like payroll help it it -- that he's gotta tell Ron Walters lies aids -- talent."

" I guess that's that it might have gotten go to. And things."

" yeah. -- You. Know I'm not I'm scratching my nose this is I recognize that I can hear that from. Right now."

" Really that's really yeah. That's how we're gonna roll I'm."

" You think. It. And."

" War."

" This episode of -- has brought to you by godaddy Squarespace. -- flag and viewers like you. Everybody welcome this week's episode Hak5 I met last night I'm Derek it's -- And that's why we're here to bring -- your weekly dose of technolust. I would hear exactly. A little thing we've you know kind patented style from somewhere else but -- that's how we roll. -- but anyway it in the form we're not keeping track now. Gonna be back. It's you know been awhile and you know in -- months since I've been inside via the -- is that it's. You you're -- for two episodes. Reach in. Internet land means like -- I understand that stale. You know yeah so they've written -- yet we kept user account forms. Thank you and prompt I was logging in higher seed from home over yet so how it has trip up north. It was good. You know just real quick my. The way. Yet sucks but. You know here -- we use that though sister got here in front of them. Those reliance. So there's there's a -- to yeah I got there Wednesday she got married Thursday and he passed the next Wednesday so you can wait for an accident can but yes and it's every show but it's got to get a bit there yeah well that I've been there. So. To date I had brought."

" You sexy back. It's you and I'm I'm looking forward to dive right in pieces. You bring -- up topic that is near and dear to my heart as I am trying to -- all along are you. Oh I'm pretty far along now I've got I've got quite a few things -- and out. I've used about 40% mighty Iran and disk relic rally eight machine you got. It's really. You're not fully migrated yet. Oh no and I'm not fully migrated and I'm making sure that liked how I had before was I had that you reservist to work with right. So -- and everything you like triple. You know. Lots of different things I mean I might as well made by you know secondary -- excellence and easier on me oh yeah I was tortured and -- you're not through the -- advance on segmenting it all out making it the way that it's supposed to be. -- I mean. It."

" Well yeah not a whole lot. But some will already talked about today is physical to virtual. I touched on this and did a brief segment for you guys if you're gonna be doing. You know the the whole. Like workstation kind of thing. VMware workstation and and stuff like that. But now we're actually gonna be connecting in taking this machine and dumping it on to. Yes I -- which is nice because we don't have to worry about transitioning files and stuff like adding in adding in -- it doesn't. All automatic."

" And I totally would have done that with my existing infrastructure is not that we're not bore in on -- There's something that I haven't -- and also virtual physical. So it'll -- I just need a little bit more horse power. We're gonna do you we have indeed some obvious -- now now that's not for an audience that's what we talked about. Tom cat here we're back in Apache. Could open source foundation. Stuff and product has. It still exists it turns out and a lot of enterprises is to run software and so it here in a situation where you need to support that kind of stuff. The feeling in town we're gonna talk about the fun scenic way to do it and it's laying the foundation for some stuff and you next episode was happy that open source ness of something that we're gonna start doing is you know. Ceres. And I'd like couples here's. I didn't do enough I don't have that big a I mean like the last trip to elect will well we have to do is do is talk about disk encryption and then we're talking about. The cold do and then talking analyzing memory that I mean. And it all is driven by the did the feedback from the -- and it's all just driven by what we're doing data dates and no I mean it's there's a serious and if you watch. There's arcs. Whatever if that's -- six. I don't want to happen. -- news on your watch snaps and a -- When the first three years -- and said. That does not surprise and watched them all after the third season because this is horrible. -- many instances are -- rambling on and off so let's go ahead and find out how you guys can join us in Williamsburg Virginia."

" At Busch Gardens. We are celebrating our fourth year anniversary. As well as the sixth season of Hak5 by doing our very first meet up. It's on August 15 at Busch Gardens Lansbury and you can buy an army and fell over at Hak5 -- that Squarespace dot com. It's open all -- is obviously -- in part. And there's gonna be fear and hacking and roller coasters. Hair. More -- moral administers. So join us to make sure RS VP we're so excited -- can't wait and I would like to thank our sponsor Squarespace. "

" With Squarespace you can build beautiful looking blogs or web sites in a fraction of the time it would take -- the traditional content management system. They're intuitive drag and drop interface is is snappy and powerful as a desktop publishing app. But best of all there's no software to install new database to configure and apaches -- life and no code to -- it. Sign up for yourself a simple and powerful it can be with a two week free trial that's Squarespace dot com. And you probably could hack. Five to support the show and save 10% off the life of your service -- Squarespace dot com."

" Next up -- is taking. One Indians and turning it into one of the but for export this."

" Sorry guys Ohio and then. Here in the studio. It's good to be back it's. Little warm but you know we can -- with that. I and today I'm bringing ES exciting conversation back after a number of emails and I got me guys. So you have been asked how the -- take a physical servers I already have deployed. And move that over to my use -- box so that I can redeploy. A server somewhere else or use that for -- box. Well it's pretty easy and -- news is VMware. Beast fear converter. Lot of these -- yet we know actually. -- And what we're gonna do is we're gonna downloaded VMware dot com install it. If year don't have a problem you know running it on the machine that make a whole lot of changes you know an assault saw where we actually get done with this that's fine. Well basically what we're gonna do is right take a running machine. And we're going to transition it to be virtual machine. On various -- server. How we're gonna do that so we've already got the servers the service installed. Where to go over here to converse standalone client then this is gonna launch here. What's it's done -- B a hit with a very simplistic interface. Couple buttons at the top. Convert machine configured machine. Things like that so we're going to convert machine. Thank now here is where we get hit with our first options the source type is going to be powered on machine okay now this machine. Is power down we're using it we've installed convert onto it. And we're gonna take an image of this transition over there when I would recommend is you stop sequel instances. Exchange server ftp -- Any service that is -- Critical to the system go and stop it just in case. You know real time transaction laws and things like that tend to have an issue when taking you know over time -- level. You get point. So the next thing we're gonna do is we're going to say this local machine now if you have. Another machine that you need to. Take a look at you can actually point it at -- there. Okay so now we're presented with our next screen which is specify our destination. Our destination is going to be our newly created yes -- server that is happy humming along doing its thing. And with no issues."

" RIP address just happens to be ten that ten that -- Dot 55. Per username is grouped in -- password is Hak5. Now remember two. If you're running multiple host in your hand the spear. You know. Virtual center or whatever they call it now. You would connect to that and then push out from there because we're just running a single host in -- side. We're actually going connect directly to the post is make sure you are your credentials when you set them -- We're gonna click next. In here we can actually now see our. List of servers that are installed on yes -- server. We've got free -- on there are ready and that is the only server that is currently on the yes outside. Host for a select data store one which has more free space this is -- 75 gigabyte total disk source size. And and for virtual machine names going to be Lenovo. -- and that word click next. And here we can actually take a look at all the options at the system presents us with so here we've seen well we don't have customization tools installed. These are really only useful if you guys or going to do -- a large number. -- 20020032008. Servers there's different instructions for installing the sis -- utilities. On the virtual mission are on the guest. Host. Physical server at this point. So that you can actually customize in terms -- machine we don't really need do that like you said we've already shot our stuff down. There's no reconfiguration needed this is gonna handle everything that we need to do. -- were to come back over here and -- conversion power state now believe it off. Puts conversion processing. We can reconfigure the destination virtual machine probably want to do that because you probably wanna sign. Two processors four processors one processor and just the amount of memory because you're in a virtual environment now. You also have the option installed VMware tools on the imported machine. After the conversion is done however I like doing it manually. I don't know why that's just me so we're gonna click next. And here's our review one more time this is what's gonna happen it's gonna preserve -- count we've got three next in the system. Monolithic flat disk going to state store one it's not an installed VMware tools and reconfigure virtual machine Edward click finish. Now once this is actually down processing it's gonna valued at task and is going to send commands over to the yes -- server so here we can see. This local machine the destination is ten at ten debt -- that 55 slash Lenovo and the status he is it's running. So is now taking our virtual arms he's -- our physical machine. And it's taking the images for the physical machine and converting it over. Pushing it in real time over to the successor so we'll have to worry about creating images transferring them and into the inventory this is doing everything that you need to deal. Like to say if you've."

" Really wanted to you can go through the process and -- us on a bunch of different ones and actually run X server client. On your desktop or your laptop at the office and convert a bunch of different machines. One by one horrible you do -- batch whenever play with it it's not really gonna harmony thing if you you know fail on me. Conversion delete the virtual machine off the SX server and try again. That's really how I've learned all of this stuff is just trial -- you you have button -- get up in new hoops. It would again so if you have questions and yet meant it Hak5 dot or. Or at the forms of forums. -- dot Hak5 dot org and to really take a look at trivia and that and after that there hasn't tomcat Laden's. I'm going to tell him why. I don't like on but maybe he has a better reasons I don't know."

" Keep your personal information away from spammers hackers into your crazy ex roommate private domain registration from godaddy.com protects your privacy. But keeping your address phone number and more out of the public database. Check out revision3.com. Slash godaddy for all of our godaddy codes in offers. You --"

" from a couple weeks ago we've been having a contest going on from sept 519 and that is build your own white box server 2000 dollars what can you guys come up with. And we've seen some really creative stuff uniforms so now it's on that map back and we had a chance to go over some other results. And come up with a winner that will be receiving just how much lag bag along with it's. It'll secretly the that a drinking game. And I thought we would -- goes through a couple of these really cool ones leading up to use the winner now. First of all I have to mention. Stead seventy seven's awesome entry he put together eight core system. Right so dual Quad Core with sixteen gigs of ram we real raid. Four terabytes of disk for 1700 dollars using a pimp out. Dell precision for ninety workstations are basically getting -- You know dual processor machine. Thrown out tool or hearing it Clinton's quad cores and hook up the -- disk I thought that was kind of unique way to go about it. And then. Mr. I've been -- a neat solution using both the USX I server. And an -- SCSI target isn't really cheap cases like twenty -- cases just. --"

" And it's in there but it's all on a Gigabit. Land who's actually delegates switch in there and then you know you can you're yes excise are mounting -- the targets lob it sounds really cool. But we've gotta give it up to go down. Don't don't put together and really neat solution using them for you case that's a 24 -- rack mount enclosure. Twelve gigs of ram. And he says up to eleven terabytes of disk with 2000 dollar option and he did want to go for software raid which is the one thing that made Matt and I go. Right because the board itself only has. Eight SATA. Oh we're like dude it's so like you know with the plane Monica's he only got up to up points that you know. Thank are a couple options right -- think it is meant -- freeware and there maybe get -- just five or six drives right. 24. I mean this thing is sick what can I. -- area. This is way crazy case. So I'm totally dig in the creativity there and negative -- and thank you to everybody that -- And -- release at some point we love that. So we will be hooking up. Dude don't think so much for participating in this contest and we're gonna be back next week with the new one. But first. It's time to talk about some crazy cool open source goodness -- stuff write something going to tell you it's about time we talk about lamp on the show right. Now now one of these I'm talkin' about Linux Apache my sql PHP the good stuff right. I mean right. How unsettled -- we do Linux and and Apache tomcat. Talent. Right it's like daddy Apache foundation export and Apache. Oh cool and what projects and this is really when these things I kind of came across because in my day job as assistant men. I I just you know talk about on the show what we're doing data day and it's been on my mind because I've been implemented -- really going -- citizens -- it. There's a lot of crazy stupid crap written in opera and won't talk about the downsides for -- here and we're gonna chat rooms right now. And all that heat for Tom and I understand right. It's really the only game and write it on and it's. Native but it's been like it's been changing hands it was like this one company and then Macromedia and then went. You know a Macromedia and Adobe and then Adobe said -- seven you know that -- for. You know. If you're gonna run tomcat enterprise. You don't have a choice of like open source right and I think that's really really cool. A home and I'm not crazy many guys and I'm not crazy about W doesn't -- like. In -- with PHP and I will learn some other languages here soon but but I thought that we could maybe take the scenic route and set up her own. Our own Linux. Apache tomcat server and and it's -- when these things that applies to many other things when it comes to setting up Linux servers and something that in doing a lot of now with. -- he's sexy so let's go and that now. Are here we are logged into our who bond teaser yes I am gonna go -- just using but -- there because no one I -- the -- and -- Kerry for that matter it's Linux to trying to work right. Back into it basically would go ahead and you get the latest version of Apache tomcat -- once we've got that would mean good on tolerate. Now we're just gonna move -- to a happy place in this case the happy place is going to be user local on it can make things easy for us to go ahead pseudo. And the that. Now that we -- to download a new to it happy place we're just gonna go ahead make sure that we actually have the Java JDK. If we don't bad install it so for that let's just run job Dutch version and we can see we don't have it so it simply."

" On Debian let's go ahead and apt get install sun. -- six."

" And we want to JDK. So get JDK installed -- actually needs an environment variables so happy fun stuff looks -- that that's where -- And only need to do is come down here and insert a little export. Java underscore home equals where it is and it's in for us. In user -- GBM some six Java. Now we just need to come up with a couple startup scripts it's going to told I'm -- how to start restart stop and all that -- pretty easy we have to do is create new file. And we're gonna pseudo -- in ETC. In it. And we're just gonna go ahead and -- its metadata appearance call."

" And there again it's just a matter of defining start stop and restart actually hit the dot SH files. Appropriately and then BS I spent. And the had to say that and then last and always forget to actually give it a little bit execute action so that's modest. Or CH moderate."

" Some type up the windows."

" And you have to -- to route to do that so there you go and that's done array. And since we're gonna want tomcat to actually boot up when the server boots up let's go ahead and at a couple some links there to make that happen so in that case we're gonna. -- That -- just created. -- TT CRC. One dot they are gonna make this K 99 tomcat. And let's do it again but this time. RC two -- DM we're gonna call past nine tomcat. -- And so clean and stay up later. So there ago we have a Tom -- ever running so let's go ahead and see who works and AC DC and it cut the tomcat. And tell -- start. And her it is started so let's actually find out of this is working and for that need to figure it yet Peters here. And we've got -- to know 135. So get out of my virtual box here and let's pull. Chrome if your browser. And head over to attend tan. No 135 on port. EV -- that's where it is. By default merry go we've got our admin accounts got to look kitty and we're ready to get out. Now we do need to actually add a manager interface this that we can actually go into the -- managers are adding more thousand will be talking a lot more about that. In the next part of this segment. But for right now let's go ahead and create that account. So we can lay this finish laying the groundwork so -- were virtual box. It's just a matter of coming over to user. Local Tom cat where we where and you can Syria national. Com folder here so it's gonna carpet as you might imagine -- it's -- palace who would've figured and let's see by. Tomcat users. -- and out. Because if you don't do this you can actually have access to any of the -- the just installed. It's pretty easy to -- user there's XML. That's already in here you could on comments and stuff but we're just gonna go ahead I didn't either with manager role. So for that. And it's gonna come in here within. The tomcat user's. Part of the X amount and I am going to add. And had what it tells me today and click tomcat manager it's gonna say hey law again I can't say no cancel the analog in and it's gonna tell me what to -- And I'm gonna say rate that's exactly what I wanted to do. I -- role manager. -- name. Equals manager. And user username. Equals tomcat. That'll be fine and then password. Make it something stupid. And then we'll give -- the manager role. And that's pretty much it will -- see that file and when we come over to our. From again we should actually be able to log in to our newly installed on cancer. Tomcat and that crappy house for that we just created. Oh did forget to mention that we have to restart service that -- you get idea. Come back over here and just as we've created at startup script that's gonna last start stop and whatnot will just issue again slash at C -- it got these last tomcat. And restart. Hooray for the when it's restarted and we should be able to log end. Back to the kiddie. Content manager. And there we get we are logged into the back end of Apache tomcat and this is where to start selling fun little service that -- goodness. And we're just gonna go ahead and stop here because it's a lot of crazy stuff and let's get -- back in here so that he can ridicule me for. Using Java and open source and it will be fun. And like -- said laying the groundwork next week we're gonna do some fun you open source goodness from here this is of course. So let's take a quick break and will be wrapping this up just --"

" I want to let everybody knows that. Dean Klein is -- service they are the largest online video rentals service and offer choice of over 6000 new and classic titles across all councils and elves which plants are you 15951. Game by members can rent one to four games at a time and keep them for as long. As they like you can also purchase a game you fall in love with it sent to the box and the manual. Pornography. Head on over to gain slide dot com slash Hak5 to get. Two week free trial membership in line dot com slash act. I guess so. Dares. Talking about tomcat and so usefulness of the server itself. However -- do want to let -- know that unless you haven't experienced tomcat -- men much like. Doesn't even need to run dot net applications on Linux. Who need a dedicated mono and if you do not secure your server properly and stay up to date. You will be in for a world of her right they're."

" but tomcat opens or you want to put that behind bunch of layers of defenses in nature patch download it it's just a bad idea yet. That's a huge fan -- yes yes I don't run tomcat."

" Or mono on. Public."

" Facing yet services it's just a really. I mean like that unless you happen -- whose experience with those you know servers. You're you're your first you know so surprise when you get a call from your eyes he -- hate wire there."

" Hundreds of thousands of -- prop up your box you know it's not now another at all and I mean I instantly. Yes I'm not on but I am sure it on your show and -- well. I don't want to be at nine and podcast. It's all in because of the things that we just talked about here. Are pretty much the same whether it's going to be -- on or pearl -- every. And I just -- the principles are Russell -- if you haven't got your feet wet -- and Linux guru but you know. Okay it's your reasons but so you're going so why would you right. Once runs on I -- you wouldn't but if you happen to. And run it on Linux is gonna make it easier. It's going to be a lot less expensive and its. Members. That. Only yet you -- and then. You don't need a public face on it and are now I -- and you can now a bit later it's. So. So again that is that is or disclaimers here we're like yeah all of that and in Leeson who continent -- this and it's got the happy little case when you installed earnest it's -- you want to be Atlantans server or -- tackle box to do. -- That would be on. The Apple I asked props there -- exactly well I'm just to. I do have some feedback some these questions and that is. Disable quick if you're concerned about the cold boot attack because a lot of cases when you actually disable quick actually counts -- him. When you -- like oh my god you're -- music and like sixteen megs of ram ever needs it that's up because it forever right. -- but like four gigs of worries. Me. -- Hip and -- used to do with eight. Do you -- I won't name it oh and yes TPM with bit locker yeah -- kind of problem. So just there. It. Here."

" We need to talk about. The store. Which is finally back up right yes my apologies. -- The -- So. When it -- countermeasures in and that we can track exactly which. Services. Doing what scripted -- who we implemented. New protect scheme and just -- fields or which. So we really appreciate it if -- yes -- so. The source back up and and or -- I'm dot org slash -- update. Workshop or workshop where all there have followed their Twitter all of -- but it's actually right after all it is great. Here -- not we. He didn't think it does well -- legal only if only because Dave Randall sat all on your computer that's exactly. All so we got as -- man is. About snubs and yet. Right."

" I thought you know you. -- it's something that. -- It's a lot about oh I love my favorite shows that area I mean. Fries my favorite band I gotta give props Emmerich co -- Collapse next episode features all sorts of new projects that you definitely don't want this they have critic crash but I found. Split in an effort 360 and that and CR PG platform for the PC try. Check out o'clock every Tuesday at revision3.com. Slash who. Cool. Okay it's -- anyway. Anyway guys next week you definitely want to stick around and see that at this that we are going to be showing I mean an ultimatum US -- Yeah. Well enough funniest guys I think they talk -- you sausage fest here I can get back and it looks. Yeah. Yeah. Telling you you. After technolust."

" Very kitchen doesn't put starts his part where -- is a mixed. He was dead. Well what in the book. Did Matt looks in the -- just loses himself just gazing deeply into. Big here slides. Get -- up. --"

" We got it like right in this. Like payroll help it it -- that he's gotta tell Ron Walters lies aids -- talent."

" I guess that's that it might have gotten go to. And things."

" yeah. -- You. Know I'm not I'm scratching my nose this is I recognize that I can hear that from. Right now."

" Really that's really yeah. That's how we're gonna roll I'm."

" You think. It. And."

Please visit the sponsors of this episode. Interested in more Revision3 special offers?

Go Daddy

Transfer your domain to Go Daddy for as little as $6.99 and get a free 1-year extension plus guaranteed renewal pricing! GoDaddy.com makes transferring easy and offers loads of extras including: hosting, a 5-page site builder, complete email, total DNS control and more! What are you waiting for?

Check out Revision3's GoDaddy sponsor page for all the codes available!

Squarespace

Squarespace is an extremely easy to use, fully hosted, completely managed environment for creating and maintaining a website, blog or portfolio. Its intuitive format and features let you be as simple or as sophisticated as you want in the way that you organize your content, no matter what it is your website calls for. Either way, you'll end up with a website that looks like you paid thousands of dollars to design it for you. For plans starting at $8 dollars a month, Squarespace is a deal you can't beat.

Check out using the code Hak5 to get 10% off the lifetime of your order.

Gamefly

Gamefly is the largest online video game rental service and offers you a choice from over 6,000 new and classic titles across all consoles and handhelds. With plans starting at $15.95/month, Gamefly members can rent 1 to 4 games at a time and keep them for as long as they'd like. There are no late fees, no due dates, and shipping is always free. Once you're done playing a game, send it back, and Gamefly will send you the next available game on your list. If you really like the game you're playing simply click 'Keep It' on the Gamefly website and the game is yours at a discounted price. Gamefly will even mail you the case and manuals free of charge.

As a Hak5 fan you can get a 2 week free trial at www.gamefly.com/hak5
mari1ee

Started discussion: July 22, 2009 @ 11:58am GMT

Episode 523 - Return of the Matt: Physical to Virtual and Apache Tomcat [Discussion]

Matt Lestock returns and brings us the skinny on converting physical servers into virtual servers and piping 'em right into your ESXi box while Darren takes the scenic route on a Linux Apache Tomcat install with some Java and bash lovin'.

Watch or download now!

masterevilace
4 months ago
This episode (large quicktime) seems lower quality than usual...

EDIT: Image quality, that is.
hdibani
4 months ago

tomcat

also checkout jetty and SUN's own glassfish.
javaguy
4 months ago

Tomcat and Java Misconceptions

I regularly watch your show and I usually think you guys are spot on. In this episode I'm sorry to say that the segment on Tomcat missed the mark. First of all Tomcat and JRun are not the only two options for serving JSPs. JBoss, WebSphere, and now Google's App Engine are options for serving Java content as well. Second many large organizations like ConAgra Foods, Luxotica, P&G, and First National Bank, just to name a few, all use Tomcat. They probably all sit behind an Apache HTTPD server (using mod_jk or mod_proxy), but they use Tomcat securely. In fact if you would dig into Java you would see that out of the box it handles many of the security vulnerabilities that have just now been addressed by PHP. Obviously the skill of the developer has a lot to do with security, but that's another topic entirely. Third other than the learning curve involved with Java there are many benefits to it over other languages like PHP. For this reason I was upset by Matt's comment "remember that phrase, only if you have to." It is a good server and it is secure out of the box unless you set it up incorrectly.

Also nothing has been mentioned about the superior performance of Java over languages like PHP. In the tests I've run Java generally performs between 5 and 20 times better than PHP. This can probably be attributed to the fact that Java is a typed language and the JSPs are only interpreted and compiled on the first request.

It seems to me that you did not consult with a Java web developer before making this show. Feel free to contact me and I will help clear up any misconceptions you have about web applications written in Java.
Psychosis
4 months ago
and Darren, there's your guy-in-the-back-of-the-classroom-with-his-hand-up for you. :)
View all 4 comments